	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_config
_ipw_config:                            ## @ipw_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_ipw_set_tx_power
	testq	%rax, %rax
	jne	LBB0_18
## %bb.1:
	movq	88(%r14), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ipw_send_adapter_address
	testq	%rax, %rax
	jne	LBB0_18
## %bb.2:
	leaq	52(%r14), %rdi
	callq	_init_sys_config
	movq	_bt_coexist@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.3:
	movq	(%r14), %rax
	movq	_EEPROM_SKU_CAPABILITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	(%rax,%rcx), %al
	movq	_EEPROM_SKU_CAP_BT_CHANNEL_SIG@GOTPCREL(%rip), %rcx
	testb	%al, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_CFG_BT_COEXISTENCE_SIGNAL_CHNL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 72(%r14)
LBB0_5:
	movq	_EEPROM_SKU_CAP_BT_OOB@GOTPCREL(%rip), %rcx
	testb	%al, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_CFG_BT_COEXISTENCE_OOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 72(%r14)
LBB0_7:
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	_IW_MODE_ADHOC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, 68(%r14)
	movq	%r14, %rdi
	callq	_ipw_send_system_config
	testq	%rax, %rax
	jne	LBB0_18
## %bb.8:
	leaq	48(%r14), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_init_supported_rates
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ipw_send_supported_rates
	testq	%rax, %rax
	je	LBB0_9
LBB0_18:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	40(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_ipw_send_rts_threshold
	testq	%rax, %rax
	jne	LBB0_18
LBB0_11:
	movq	%r14, %rdi
	callq	_ipw_set_random_seed
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:
	movq	%r14, %rdi
	callq	_ipw_send_host_complete
	testq	%rax, %rax
	jne	LBB0_18
## %bb.13:
	movq	_STATUS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r14)
	movq	%r14, %rdi
	callq	_ipw_led_init
	movq	%r14, %rdi
	callq	_ipw_led_radio_on
	movq	$0, 24(%r14)
	movq	_CAP_PRIVACY_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, 8(%r14)
	je	LBB0_19
## %bb.14:
	movq	16(%r14), %rax
	movq	24(%rax), %rcx
	movq	_SEC_LEVEL_1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_19
## %bb.15:
	cmpq	$0, 16(%rax)
	jne	LBB0_19
## %bb.16:
	cmpq	$0, 8(%rax)
	jne	LBB0_19
## %bb.17:
	movq	%r14, %rdi
	callq	_ipw_set_hwcrypto_keys
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_bt_coexist,8,3                 ## @bt_coexist
	.comm	_EEPROM_SKU_CAPABILITY,8,3      ## @EEPROM_SKU_CAPABILITY
	.comm	_EEPROM_SKU_CAP_BT_CHANNEL_SIG,1,0 ## @EEPROM_SKU_CAP_BT_CHANNEL_SIG
	.comm	_CFG_BT_COEXISTENCE_SIGNAL_CHNL,4,2 ## @CFG_BT_COEXISTENCE_SIGNAL_CHNL
	.comm	_EEPROM_SKU_CAP_BT_OOB,1,0      ## @EEPROM_SKU_CAP_BT_OOB
	.comm	_CFG_BT_COEXISTENCE_OOB,4,2     ## @CFG_BT_COEXISTENCE_OOB
	.comm	_IW_MODE_ADHOC,8,3              ## @IW_MODE_ADHOC
	.comm	_STATUS_INIT,4,2                ## @STATUS_INIT
	.comm	_CAP_PRIVACY_ON,4,2             ## @CAP_PRIVACY_ON
	.comm	_SEC_LEVEL_1,8,3                ## @SEC_LEVEL_1
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ipw_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_config
_ipw_config:                            ; @ipw_config
	.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
	bl	_ipw_set_tx_power
	cbnz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x19, #88]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipw_send_adapter_address
	cbnz	x0, LBB0_9
; %bb.2:
	add	x0, x19, #52
	bl	_init_sys_config
Lloh0:
	adrp	x8, _bt_coexist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bt_coexist@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _EEPROM_SKU_CAPABILITY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EEPROM_SKU_CAPABILITY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldrb	w8, [x8, x9]
Lloh6:
	adrp	x9, _EEPROM_SKU_CAP_BT_CHANNEL_SIG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EEPROM_SKU_CAP_BT_CHANNEL_SIG@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh8:
	adrp	x9, _CFG_BT_COEXISTENCE_SIGNAL_CHNL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CFG_BT_COEXISTENCE_SIGNAL_CHNL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x19, #72]
	orr	w9, w10, w9
	str	w9, [x19, #72]
LBB0_5:
Lloh11:
	adrp	x9, _EEPROM_SKU_CAP_BT_OOB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EEPROM_SKU_CAP_BT_OOB@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _CFG_BT_COEXISTENCE_OOB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CFG_BT_COEXISTENCE_OOB@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #72]
	orr	w8, w9, w8
	str	w8, [x19, #72]
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _IW_MODE_ADHOC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IW_MODE_ADHOC@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19, #68]
	mov	x0, x19
	bl	_ipw_send_system_config
	cbnz	x0, LBB0_9
; %bb.8:
	add	x20, x19, #48
	mov	x0, x19
	mov	x1, x20
	bl	_init_supported_rates
	mov	x0, x19
	mov	x1, x20
	bl	_ipw_send_supported_rates
	cbz	x0, LBB0_11
LBB0_9:
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x1, [x19, #40]
	cbz	x1, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_ipw_send_rts_threshold
	cbnz	x0, LBB0_9
LBB0_13:
	mov	x0, x19
	bl	_ipw_set_random_seed
	cbnz	x0, LBB0_9
; %bb.14:
	mov	x0, x19
	bl	_ipw_send_host_complete
	cbnz	x0, LBB0_9
; %bb.15:
Lloh22:
	adrp	x8, _STATUS_INIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _STATUS_INIT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	mov	x0, x19
	bl	_ipw_led_init
	mov	x0, x19
	bl	_ipw_led_radio_on
	str	xzr, [x19, #24]
	ldr	w8, [x19, #8]
Lloh25:
	adrp	x9, _CAP_PRIVACY_ON@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CAP_PRIVACY_ON@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.16:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #24]
Lloh28:
	adrp	x10, _SEC_LEVEL_1@GOTPAGE
Lloh29:
	ldr	x10, [x10, _SEC_LEVEL_1@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_19
; %bb.17:
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_19
; %bb.18:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_20
LBB0_19:
	mov	w0, #0
	b	LBB0_10
LBB0_20:
	mov	x0, x19
	bl	_ipw_set_hwcrypto_keys
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_bt_coexist,8,3                 ; @bt_coexist
	.comm	_EEPROM_SKU_CAPABILITY,8,3      ; @EEPROM_SKU_CAPABILITY
	.comm	_EEPROM_SKU_CAP_BT_CHANNEL_SIG,1,0 ; @EEPROM_SKU_CAP_BT_CHANNEL_SIG
	.comm	_CFG_BT_COEXISTENCE_SIGNAL_CHNL,4,2 ; @CFG_BT_COEXISTENCE_SIGNAL_CHNL
	.comm	_EEPROM_SKU_CAP_BT_OOB,1,0      ; @EEPROM_SKU_CAP_BT_OOB
	.comm	_CFG_BT_COEXISTENCE_OOB,4,2     ; @CFG_BT_COEXISTENCE_OOB
	.comm	_IW_MODE_ADHOC,8,3              ; @IW_MODE_ADHOC
	.comm	_STATUS_INIT,4,2                ; @STATUS_INIT
	.comm	_CAP_PRIVACY_ON,4,2             ; @CAP_PRIVACY_ON
	.comm	_SEC_LEVEL_1,8,3                ; @SEC_LEVEL_1
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ipw_config
.subsections_via_symbols
