	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nxp_nci_i2c_set_mode
_nxp_nci_i2c_set_mode:                  ## @nxp_nci_i2c_set_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	12(%rdi), %edi
	movq	_NXP_NCI_MODE_FW@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	%ebx, (%rax)
	sete	%sil
	callq	_gpiod_set_value
	movl	8(%r14), %edi
	movq	_NXP_NCI_MODE_COLD@GOTPCREL(%rip), %r15
	xorl	%esi, %esi
	cmpl	%ebx, (%r15)
	setne	%sil
	callq	_gpiod_set_value
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$15000, %esi                    ## imm = 0x3A98
	callq	_usleep_range
	cmpl	%ebx, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	$0, (%r14)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NXP_NCI_MODE_FW,4,2            ## @NXP_NCI_MODE_FW
	.comm	_NXP_NCI_MODE_COLD,4,2          ## @NXP_NCI_MODE_COLD
	.no_dead_strip	_nxp_nci_i2c_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nxp_nci_i2c_set_mode
_nxp_nci_i2c_set_mode:                  ; @nxp_nci_i2c_set_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x8, _NXP_NCI_MODE_FW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NXP_NCI_MODE_FW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w1, eq
	bl	_gpiod_set_value
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x21, _NXP_NCI_MODE_COLD@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NXP_NCI_MODE_COLD@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w20
	cset	w1, ne
	bl	_gpiod_set_value
	mov	w0, #10000
	mov	w1, #15000
	bl	_usleep_range
	ldr	w8, [x21]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NXP_NCI_MODE_FW,4,2            ; @NXP_NCI_MODE_FW
	.comm	_NXP_NCI_MODE_COLD,4,2          ; @NXP_NCI_MODE_COLD
	.no_dead_strip	_nxp_nci_i2c_set_mode
.subsections_via_symbols
