	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf7242_hw_init
_adf7242_hw_init:                       ## @adf7242_hw_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_CMD_RC_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_adf7242_cmd
	movq	_CMD_RC_IDLE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_adf7242_cmd
	movq	_FIRMWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	leaq	-40(%rbp), %rdi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_2:
	movq	-40(%rbp), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adf7242_upload_firmware
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movq	-40(%rbp), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adf7242_verify_firmware
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movl	%ebx, %edx
	callq	_dev_err
	movq	-40(%rbp), %rdi
	callq	_release_firmware
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_CMD_RC_PC_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adf7242_cmd
	movq	-40(%rbp), %rdi
	callq	_release_firmware
	movq	_ACCEPT_BEACON_FRAMES@GOTPCREL(%rip), %rax
	movq	_ACCEPT_DATA_FRAMES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_REG_FFILT_CFG@GOTPCREL(%rip), %rax
	movq	_ACCEPT_MACCMD_FRAMES@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_ACCEPT_RESERVED_FRAMES@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adf7242_write_reg
	movq	_REG_AUTO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RX_AUTO_ACK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adf7242_write_reg
	movq	_REG_PKT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ADDON_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$2, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_adf7242_write_reg
	movq	_REG_EXTPA_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$241, %edx
	callq	_adf7242_write_reg
	movq	_REG_RXFE_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$29, %edx
	callq	_adf7242_write_reg
	movq	_REG_IRQ1_EN0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_adf7242_write_reg
	movq	_REG_IRQ1_EN1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQ_RX_PKT_RCVD@GOTPCREL(%rip), %rax
	movq	_IRQ_CSMA_CA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adf7242_write_reg
	movq	%r14, %rdi
	callq	_adf7242_clear_irqstat
	movq	_REG_IRQ1_SRC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$255, %edx
	callq	_adf7242_write_reg
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_adf7242_cmd
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_RC_RESET,4,2               ## @CMD_RC_RESET
	.comm	_CMD_RC_IDLE,4,2                ## @CMD_RC_IDLE
	.comm	_FIRMWARE,4,2                   ## @FIRMWARE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request_firmware() failed with %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"upload firmware failed with %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"verify firmware failed with %d\n"

	.comm	_CMD_RC_PC_RESET,4,2            ## @CMD_RC_PC_RESET
	.comm	_REG_FFILT_CFG,4,2              ## @REG_FFILT_CFG
	.comm	_ACCEPT_BEACON_FRAMES,4,2       ## @ACCEPT_BEACON_FRAMES
	.comm	_ACCEPT_DATA_FRAMES,4,2         ## @ACCEPT_DATA_FRAMES
	.comm	_ACCEPT_MACCMD_FRAMES,4,2       ## @ACCEPT_MACCMD_FRAMES
	.comm	_ACCEPT_RESERVED_FRAMES,4,2     ## @ACCEPT_RESERVED_FRAMES
	.comm	_REG_AUTO_CFG,4,2               ## @REG_AUTO_CFG
	.comm	_RX_AUTO_ACK_EN,4,2             ## @RX_AUTO_ACK_EN
	.comm	_REG_PKT_CFG,4,2                ## @REG_PKT_CFG
	.comm	_ADDON_EN,4,2                   ## @ADDON_EN
	.comm	_REG_EXTPA_MSC,4,2              ## @REG_EXTPA_MSC
	.comm	_REG_RXFE_CFG,4,2               ## @REG_RXFE_CFG
	.comm	_REG_IRQ1_EN0,4,2               ## @REG_IRQ1_EN0
	.comm	_REG_IRQ1_EN1,4,2               ## @REG_IRQ1_EN1
	.comm	_IRQ_RX_PKT_RCVD,4,2            ## @IRQ_RX_PKT_RCVD
	.comm	_IRQ_CSMA_CA,4,2                ## @IRQ_CSMA_CA
	.comm	_REG_IRQ1_SRC0,4,2              ## @REG_IRQ1_SRC0
	.no_dead_strip	_adf7242_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf7242_hw_init
_adf7242_hw_init:                       ; @adf7242_hw_init
	.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	x19, x0
Lloh0:
	adrp	x8, _CMD_RC_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_RC_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_adf7242_cmd
Lloh3:
	adrp	x21, _CMD_RC_IDLE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CMD_RC_IDLE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_adf7242_cmd
Lloh5:
	adrp	x8, _FIRMWARE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FIRMWARE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x19]
	add	x0, sp, #8
	bl	_request_firmware
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_7
LBB0_2:
	ldr	x8, [sp, #8]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_adf7242_upload_firmware
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	x0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x8, [sp, #8]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_adf7242_verify_firmware
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x2, x20
	bl	_dev_err
	ldr	x0, [sp, #8]
	bl	_release_firmware
LBB0_7:
	mov	x0, x20
	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_8:
Lloh14:
	adrp	x8, _CMD_RC_PC_RESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMD_RC_PC_RESET@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_adf7242_cmd
	ldr	x0, [sp, #8]
	bl	_release_firmware
Lloh17:
	adrp	x8, _REG_FFILT_CFG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_FFILT_CFG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _ACCEPT_BEACON_FRAMES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ACCEPT_BEACON_FRAMES@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _ACCEPT_DATA_FRAMES@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ACCEPT_DATA_FRAMES@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _ACCEPT_MACCMD_FRAMES@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ACCEPT_MACCMD_FRAMES@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _ACCEPT_RESERVED_FRAMES@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ACCEPT_RESERVED_FRAMES@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_adf7242_write_reg
Lloh32:
	adrp	x8, _REG_AUTO_CFG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REG_AUTO_CFG@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _RX_AUTO_ACK_EN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RX_AUTO_ACK_EN@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_adf7242_write_reg
Lloh38:
	adrp	x8, _REG_PKT_CFG@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REG_PKT_CFG@GOTPAGEOFF]
Lloh40:
	ldr	w20, [x8]
Lloh41:
	adrp	x8, _ADDON_EN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ADDON_EN@GOTPAGEOFF]
Lloh43:
	ldr	w22, [x8]
	mov	w0, #2
	bl	_BIT
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x20
	bl	_adf7242_write_reg
Lloh44:
	adrp	x8, _REG_EXTPA_MSC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _REG_EXTPA_MSC@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #241
	bl	_adf7242_write_reg
Lloh47:
	adrp	x8, _REG_RXFE_CFG@GOTPAGE
Lloh48:
	ldr	x8, [x8, _REG_RXFE_CFG@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #29
	bl	_adf7242_write_reg
Lloh50:
	adrp	x8, _REG_IRQ1_EN0@GOTPAGE
Lloh51:
	ldr	x8, [x8, _REG_IRQ1_EN0@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_adf7242_write_reg
Lloh53:
	adrp	x8, _REG_IRQ1_EN1@GOTPAGE
Lloh54:
	ldr	x8, [x8, _REG_IRQ1_EN1@GOTPAGEOFF]
Lloh55:
	adrp	x9, _IRQ_RX_PKT_RCVD@GOTPAGE
Lloh56:
	ldr	x9, [x9, _IRQ_RX_PKT_RCVD@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
Lloh58:
	ldr	w8, [x9]
Lloh59:
	adrp	x9, _IRQ_CSMA_CA@GOTPAGE
Lloh60:
	ldr	x9, [x9, _IRQ_CSMA_CA@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_adf7242_write_reg
	mov	x0, x19
	bl	_adf7242_clear_irqstat
Lloh62:
	adrp	x8, _REG_IRQ1_SRC0@GOTPAGE
Lloh63:
	ldr	x8, [x8, _REG_IRQ1_SRC0@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_adf7242_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	bl	_adf7242_cmd
	mov	w20, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh57
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_RC_RESET,4,2               ; @CMD_RC_RESET
	.comm	_CMD_RC_IDLE,4,2                ; @CMD_RC_IDLE
	.comm	_FIRMWARE,4,2                   ; @FIRMWARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request_firmware() failed with %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"upload firmware failed with %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"verify firmware failed with %d\n"

	.comm	_CMD_RC_PC_RESET,4,2            ; @CMD_RC_PC_RESET
	.comm	_REG_FFILT_CFG,4,2              ; @REG_FFILT_CFG
	.comm	_ACCEPT_BEACON_FRAMES,4,2       ; @ACCEPT_BEACON_FRAMES
	.comm	_ACCEPT_DATA_FRAMES,4,2         ; @ACCEPT_DATA_FRAMES
	.comm	_ACCEPT_MACCMD_FRAMES,4,2       ; @ACCEPT_MACCMD_FRAMES
	.comm	_ACCEPT_RESERVED_FRAMES,4,2     ; @ACCEPT_RESERVED_FRAMES
	.comm	_REG_AUTO_CFG,4,2               ; @REG_AUTO_CFG
	.comm	_RX_AUTO_ACK_EN,4,2             ; @RX_AUTO_ACK_EN
	.comm	_REG_PKT_CFG,4,2                ; @REG_PKT_CFG
	.comm	_ADDON_EN,4,2                   ; @ADDON_EN
	.comm	_REG_EXTPA_MSC,4,2              ; @REG_EXTPA_MSC
	.comm	_REG_RXFE_CFG,4,2               ; @REG_RXFE_CFG
	.comm	_REG_IRQ1_EN0,4,2               ; @REG_IRQ1_EN0
	.comm	_REG_IRQ1_EN1,4,2               ; @REG_IRQ1_EN1
	.comm	_IRQ_RX_PKT_RCVD,4,2            ; @IRQ_RX_PKT_RCVD
	.comm	_IRQ_CSMA_CA,4,2                ; @IRQ_CSMA_CA
	.comm	_REG_IRQ1_SRC0,4,2              ; @REG_IRQ1_SRC0
	.no_dead_strip	_adf7242_hw_init
.subsections_via_symbols
