	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfcmrvl_fw_dnld_start          ## -- Begin function nfcmrvl_fw_dnld_start
	.p2align	4, 0x90
_nfcmrvl_fw_dnld_start:                 ## @nfcmrvl_fw_dnld_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_nci_get_drvdata
	cmpl	$0, 76(%rax)
	je	LBB0_9
## %bb.1:
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	cmpb	$0, (%r15)
	je	LBB0_8
## %bb.3:
	movq	%rax, %r14
	movl	48(%rax), %edi
	movq	%r15, %rsi
	callq	_strcpy
	leaq	40(%r14), %rdi
	movq	(%rbx), %rdx
	movq	%r15, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	js	LBB0_14
## %bb.4:
	movq	40(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	(%rax), %rcx
	movq	8(%rax), %r8
	movq	_NFCMRVL_FW_MAGIC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.5:
	cmpq	(%r14), %r8
	jne	LBB0_13
## %bb.6:
	cmpq	$0, 32(%rax)
	movl	72(%r14), %edi
	je	LBB0_15
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	callq	_nfc_info
	movq	16(%r14), %rax
	addq	$32, %rax
	jmp	LBB0_16
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	72(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_nfc_err
	movq	40(%r14), %rdi
	callq	_release_firmware
	movq	$0, 16(%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_14:
	movl	72(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_nfc_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	callq	_nfc_info
	movq	16(%r14), %rax
	addq	$24, %rax
LBB0_16:
	movq	%rax, 32(%r14)
	movq	%r14, %r15
	addq	$24, %r15
	movq	_fw_dnld_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_FW_DNLD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mod_timer
	movq	16(%r14), %rsi
	movq	64(%r14), %rax
	addq	$16, %rsi
	movq	%r14, %rdi
	callq	*(%rax)
	movq	56(%r14), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	_STATE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_nfcmrvl_chip_reset
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to retrieve FW %s"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_NFCMRVL_FW_MAGIC,8,3           ## @NFCMRVL_FW_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"bad firmware binary %s magic=0x%x phy=%d"

L_.str.2:                               ## @.str.2
	.asciz	"loading helper"

L_.str.3:                               ## @.str.3
	.asciz	"loading firmware"

	.comm	_fw_dnld_timeout,4,2            ## @fw_dnld_timeout
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_FW_DNLD_TIMEOUT,4,2            ## @FW_DNLD_TIMEOUT
	.comm	_STATE_RESET,4,2                ## @STATE_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfcmrvl_fw_dnld_start          ; -- Begin function nfcmrvl_fw_dnld_start
	.p2align	2
_nfcmrvl_fw_dnld_start:                 ; @nfcmrvl_fw_dnld_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	bl	_nci_get_drvdata
	ldr	w8, [x0, #76]
	cbz	w8, LBB0_8
; %bb.1:
	cbz	x20, LBB0_10
; %bb.2:
	ldrb	w8, [x20]
	cbz	w8, LBB0_10
; %bb.3:
	mov	x19, x0
	ldr	w0, [x0, #48]
	mov	x1, x20
	bl	_strcpy
	add	x0, x19, #40
	ldr	x2, [x21]
	mov	x1, x20
	bl	_request_firmware
	tbnz	w0, #31, LBB0_13
; %bb.4:
	ldr	x8, [x19, #40]
	ldr	x9, [x8]
	str	x9, [x19, #16]
Lloh0:
	adrp	x8, _NFCMRVL_FW_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFCMRVL_FW_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x8]
	ldp	x8, x10, [x9]
	cmp	x8, x11
	b.ne	LBB0_9
; %bb.5:
	ldr	x11, [x19]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x9, #32]
	ldr	w0, [x19, #72]
	cbz	x8, LBB0_14
; %bb.7:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_nfc_info
	ldr	x8, [x19, #16]
	add	x8, x8, #32
	b	LBB0_15
LBB0_8:
Lloh5:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w0, [x19, #72]
	stp	x8, x10, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_nfc_err
	ldr	x0, [x19, #40]
	bl	_release_firmware
	str	xzr, [x19, #16]
LBB0_10:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
	ldr	w0, [x19, #72]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_nfc_err
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_11
LBB0_14:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_nfc_info
	ldr	x8, [x19, #16]
	add	x8, x8, #24
LBB0_15:
	str	x8, [x19, #32]
	add	x20, x19, #24
Lloh17:
	adrp	x8, _fw_dnld_timeout@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fw_dnld_timeout@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
Lloh20:
	adrp	x8, _jiffies@GOTPAGE
Lloh21:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh22:
	ldr	x21, [x8]
Lloh23:
	adrp	x8, _FW_DNLD_TIMEOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FW_DNLD_TIMEOUT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x20
	bl	_mod_timer
	ldr	x8, [x19, #64]
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	add	x1, x9, #16
	mov	x0, x19
	blr	x8
	ldr	x0, [x19, #56]
	mov	w1, #1
	bl	_atomic_set
Lloh26:
	adrp	x8, _STATE_RESET@GOTPAGE
Lloh27:
	ldr	x8, [x8, _STATE_RESET@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_nfcmrvl_chip_reset
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to retrieve FW %s"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_NFCMRVL_FW_MAGIC,8,3           ; @NFCMRVL_FW_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"bad firmware binary %s magic=0x%x phy=%d"

l_.str.2:                               ; @.str.2
	.asciz	"loading helper"

l_.str.3:                               ; @.str.3
	.asciz	"loading firmware"

	.comm	_fw_dnld_timeout,4,2            ; @fw_dnld_timeout
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_FW_DNLD_TIMEOUT,4,2            ; @FW_DNLD_TIMEOUT
	.comm	_STATE_RESET,4,2                ; @STATE_RESET
.subsections_via_symbols
