	.file	"extr_esp_ble_mesh_health_model_api.c_esp_ble_mesh_health_client_set_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	esp_ble_mesh_health_client_set_state
	.type	esp_ble_mesh_health_client_set_state, @function
esp_ble_mesh_health_client_set_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pxor	xmm0, xmm0
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR 16[rsp], xmm0
	mov	QWORD PTR 32[rsp], 0
	movaps	XMMWORD PTR [rsp], xmm0
	test	rdi, rdi
	je	.L2
	mov	edx, DWORD PTR 4[rdi]
	mov	rbx, rdi
	test	edx, edx
	je	.L2
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L2
	mov	rbp, rsi
	test	rsi, rsi
	je	.L2
	mov	edi, DWORD PTR ESP_BLE_HOST_STATUS_ENABLED[rip]
	call	ESP_BLE_HOST_STATUS_CHECK@PLT
	mov	eax, DWORD PTR BTC_SIG_API_CALL[rip]
	lea	rsi, 16[rsp]
	mov	rdi, rsp
	mov	ecx, DWORD PTR btc_ble_mesh_health_client_arg_deep_copy[rip]
	mov	edx, 24
	mov	QWORD PTR 24[rsp], rbx
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR BTC_PID_HEALTH_CLIENT[rip]
	mov	QWORD PTR 16[rsp], rbp
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR BTC_BLE_MESH_ACT_HEALTH_CLIENT_SET_STATE[rip]
	mov	DWORD PTR [rsp], eax
	call	btc_transfer_context@PLT
	mov	r8, rax
	cmp	r8, QWORD PTR BT_STATUS_SUCCESS[rip]
	mov	eax, DWORD PTR ESP_FAIL[rip]
	jne	.L1
	mov	eax, DWORD PTR ESP_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR ESP_ERR_INVALID_ARG[rip]
.L1:
	mov	rdx, QWORD PTR 40[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	esp_ble_mesh_health_client_set_state, .-esp_ble_mesh_health_client_set_state
	.comm	btc_ble_mesh_health_client_arg_deep_copy,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.comm	ESP_ERR_INVALID_ARG,4,4
	.comm	ESP_BLE_HOST_STATUS_ENABLED,4,4
	.comm	BT_STATUS_SUCCESS,8,8
	.comm	BTC_SIG_API_CALL,4,4
	.comm	BTC_PID_HEALTH_CLIENT,4,4
	.comm	BTC_BLE_MESH_ACT_HEALTH_CLIENT_SET_STATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_esp_ble_mesh_health_model_api.c_esp_ble_mesh_health_client_set_state.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	esp_ble_mesh_health_client_set_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	esp_ble_mesh_health_client_set_state, %function
esp_ble_mesh_health_client_set_state:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, lr}
	ldr	r2, .L16
	sub	sp, sp, #36
	subs	r4, r0, #0
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	str	r3, [sp]
	str	r3, [sp, #12]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	beq	.L2
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r4]
	mov	r5, r1
	cmp	r1, #0
	cmpne	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L16+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, pc}
.L3:
	ldr	r3, .L16+8
	ldr	r0, [r3]
	bl	ESP_BLE_HOST_STATUS_CHECK
	ldr	r3, .L16+12
	ldr	r2, .L16+16
	ldr	r1, .L16+20
	ldr	r2, [r2]
	ldr	ip, [r3]
	ldr	r3, .L16+24
	ldr	lr, [r1]
	ldr	r3, [r3]
	str	r2, [sp, #20]
	mov	r1, sp
	mov	r2, #12
	add	r0, sp, #12
	str	r4, [sp, #4]
	str	r5, [sp]
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	bl	btc_transfer_context
	ldr	r3, .L16+28
	ldr	r3, [r3]
	cmp	r0, r3
	ldreq	r3, .L16+32
	ldrne	r3, .L16+36
	ldr	r0, [r3]
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	ESP_ERR_INVALID_ARG
	.word	ESP_BLE_HOST_STATUS_ENABLED
	.word	BTC_BLE_MESH_ACT_HEALTH_CLIENT_SET_STATE
	.word	BTC_SIG_API_CALL
	.word	BTC_PID_HEALTH_CLIENT
	.word	btc_ble_mesh_health_client_arg_deep_copy
	.word	BT_STATUS_SUCCESS
	.word	ESP_OK
	.word	ESP_FAIL
	.size	esp_ble_mesh_health_client_set_state, .-esp_ble_mesh_health_client_set_state
	.comm	btc_ble_mesh_health_client_arg_deep_copy,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.comm	ESP_ERR_INVALID_ARG,4,4
	.comm	ESP_BLE_HOST_STATUS_ENABLED,4,4
	.comm	BT_STATUS_SUCCESS,4,4
	.comm	BTC_SIG_API_CALL,4,4
	.comm	BTC_PID_HEALTH_CLIENT,4,4
	.comm	BTC_BLE_MESH_ACT_HEALTH_CLIENT_SET_STATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
