	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfcmrvl_chip_reset             ## -- Begin function nfcmrvl_chip_reset
	.p2align	4, 0x90
_nfcmrvl_chip_reset:                    ## @nfcmrvl_chip_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_NFCMRVL_PHY_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_clear_bit
	movl	4(%rbx), %edi
	callq	_gpio_is_valid
	movl	(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_nfc_info
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movl	4(%rbx), %edi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gpio_set_value                 ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_nfc_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFCMRVL_PHY_ERROR,4,2          ## @NFCMRVL_PHY_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset the chip\n"

L_.str.1:                               ## @.str.1
	.asciz	"no reset available on this interface\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfcmrvl_chip_reset             ; -- Begin function nfcmrvl_chip_reset
	.p2align	2
_nfcmrvl_chip_reset:                    ; @nfcmrvl_chip_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _NFCMRVL_PHY_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFCMRVL_PHY_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_clear_bit
	ldr	w0, [x19, #4]
	bl	_gpio_is_valid
	mov	x8, x0
	ldr	w0, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfc_info
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_gpio_set_value
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
	ldr	w0, [x19, #4]
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gpio_set_value
LBB0_2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nfc_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NFCMRVL_PHY_ERROR,4,2          ; @NFCMRVL_PHY_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset the chip\n"

l_.str.1:                               ; @.str.1
	.asciz	"no reset available on this interface\n"

.subsections_via_symbols
