	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_up
_ipw_up:                                ## @ipw_up
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	48(%rbx), %edi
	callq	_libipw_networks_age
	movq	$0, 40(%rbx)
LBB0_2:
	movq	_STATUS_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_5:
	movq	_cmdlog@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	testl	%edi, %edi
	je	LBB0_10
## %bb.6:
	cmpq	$0, 32(%rbx)
	jne	LBB0_10
## %bb.7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 32(%rbx)
	movl	(%r14), %esi
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	%esi, 4(%rbx)
LBB0_10:
	movq	_MAX_HW_RESTARTS@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	cmpl	$0, (%r13)
	movl	$0, %r15d
	jle	LBB0_23
## %bb.11:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ipw_load
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_ipw_init_ordinals
	movq	_CFG_CUSTOM_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	20(%rbx), %esi
	movq	%rbx, %rdi
	callq	_eeprom_parse_mac
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_ipw_set_geo
	movq	_STATUS_RF_KILL_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_rf_kill_active
	testq	%rax, %rax
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_ipw_config
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	movl	(%r13), %edx
	leaq	L_.str.6(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	movq	%rbx, %rdi
	callq	_ipw_down
	incl	%r15d
	cmpl	(%r13), %r15d
	jl	LBB0_12
LBB0_23:
	leaq	L_.str.7(%rip), %rdi
	movl	%r15d, %esi
	callq	_IPW_ERROR
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_24:
	subl	(%rax), %r12d
LBB0_25:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_IPW_ERROR
	movl	%r14d, %r12d
	jmp	LBB0_25
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	callq	_IPW_WARNING
	xorl	%r12d, %r12d
	jmp	LBB0_25
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	callq	_IPW_WARNING
	addq	$16, %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%esi, %esi
	movq	%rbx, %rdi
	callq	_schedule_delayed_work
	xorl	%r12d, %r12d
	jmp	LBB0_25
LBB0_21:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	addq	$12, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_schedule_delayed_work
	jmp	LBB0_25
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_IPW_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_EXIT_PENDING,4,2        ## @STATUS_EXIT_PENDING
	.comm	_EIO,4,2                        ## @EIO
	.comm	_cmdlog,4,2                     ## @cmdlog
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error allocating %d command log entries.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_HW_RESTARTS,4,2            ## @MAX_HW_RESTARTS
L_.str.1:                               ## @.str.1
	.asciz	"Unable to load firmware: %d\n"

	.comm	_CFG_CUSTOM_MAC,4,2             ## @CFG_CUSTOM_MAC
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_STATUS_RF_KILL_SW,4,2          ## @STATUS_RF_KILL_SW
L_.str.2:                               ## @.str.2
	.asciz	"Radio disabled by module parameter.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Radio Frequency Kill Switch is On:\nKill switch must be turned off for wireless networking to work.\n"

	.comm	_HZ,4,2                         ## @HZ
L_.str.4:                               ## @.str.4
	.asciz	"Configured device on count %i\n"

L_.str.5:                               ## @.str.5
	.asciz	"Device configuration failed: 0x%08X\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to config device on retry %d of %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Unable to initialize device after %d attempts.\n"

	.no_dead_strip	_ipw_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_up
_ipw_up:                                ; @ipw_up
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x1, [x0, #40]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #48]
	bl	_libipw_networks_age
	str	xzr, [x19, #40]
LBB0_2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _STATUS_EXIT_PENDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATUS_EXIT_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.3:
Lloh3:
	adrp	x20, _cmdlog@GOTPAGE
Lloh4:
	ldr	x20, [x20, _cmdlog@GOTPAGEOFF]
	ldr	w0, [x20]
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_7
; %bb.5:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #32]
	ldr	w1, [x20]
	cbz	x0, LBB0_26
; %bb.6:
	str	w1, [x19, #4]
LBB0_7:
Lloh8:
	adrp	x24, _MAX_HW_RESTARTS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MAX_HW_RESTARTS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.8:
	mov	w20, #0
Lloh10:
	adrp	x25, _CFG_CUSTOM_MAC@GOTPAGE
Lloh11:
	ldr	x25, [x25, _CFG_CUSTOM_MAC@GOTPAGEOFF]
Lloh12:
	adrp	x26, _ETH_ALEN@GOTPAGE
Lloh13:
	ldr	x26, [x26, _ETH_ALEN@GOTPAGEOFF]
Lloh14:
	adrp	x27, _STATUS_RF_KILL_SW@GOTPAGE
Lloh15:
	ldr	x27, [x27, _STATUS_RF_KILL_SW@GOTPAGEOFF]
Lloh16:
	adrp	x21, l_.str.5@PAGE
Lloh17:
	add	x21, x21, l_.str.5@PAGEOFF
Lloh18:
	adrp	x22, l_.str.6@PAGE
Lloh19:
	add	x22, x22, l_.str.6@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ipw_load
	cbnz	w0, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_ipw_init_ordinals
	ldr	w8, [x19, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x19, #20]
	mov	x0, x19
	bl	_eeprom_parse_mac
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w1, [x19, #20]
	ldr	w2, [x26]
	bl	_memcpy
	mov	x0, x19
	bl	_ipw_set_geo
	ldr	w8, [x19]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_rf_kill_active
	cbnz	x0, LBB0_23
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_ipw_config
	cbz	w0, LBB0_24
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x0
	mov	x0, x21
	bl	_IPW_DEBUG_INFO
	ldr	w8, [x24]
	str	x8, [sp]
	mov	x0, x22
	mov	x1, x20
	bl	_IPW_DEBUG_INFO
	mov	x0, x19
	bl	_ipw_down
	add	w20, w20, #1
	ldr	w8, [x24]
	cmp	w20, w8
	b.lt	LBB0_9
	b	LBB0_17
LBB0_16:
	mov	w20, #0
LBB0_17:
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x20
	bl	_IPW_ERROR
LBB0_18:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	mov	x23, x0
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_IPW_ERROR
	b	LBB0_20
LBB0_22:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IPW_WARNING
	mov	w23, #0
	b	LBB0_20
LBB0_23:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IPW_WARNING
	add	x0, x19, #16
Lloh30:
	adrp	x8, _HZ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	lsl	w1, w8, #1
	b	LBB0_25
LBB0_24:
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_IPW_DEBUG_INFO
	add	x0, x19, #12
	mov	w1, #0
LBB0_25:
	bl	_schedule_delayed_work
	mov	w23, #0
	b	LBB0_20
LBB0_26:
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_ERROR
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_EXIT_PENDING,4,2        ; @STATUS_EXIT_PENDING
	.comm	_EIO,4,2                        ; @EIO
	.comm	_cmdlog,4,2                     ; @cmdlog
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error allocating %d command log entries.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_HW_RESTARTS,4,2            ; @MAX_HW_RESTARTS
l_.str.1:                               ; @.str.1
	.asciz	"Unable to load firmware: %d\n"

	.comm	_CFG_CUSTOM_MAC,4,2             ; @CFG_CUSTOM_MAC
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_STATUS_RF_KILL_SW,4,2          ; @STATUS_RF_KILL_SW
l_.str.2:                               ; @.str.2
	.asciz	"Radio disabled by module parameter.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Radio Frequency Kill Switch is On:\nKill switch must be turned off for wireless networking to work.\n"

	.comm	_HZ,4,2                         ; @HZ
l_.str.4:                               ; @.str.4
	.asciz	"Configured device on count %i\n"

l_.str.5:                               ; @.str.5
	.asciz	"Device configuration failed: 0x%08X\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to config device on retry %d of %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Unable to initialize device after %d attempts.\n"

	.no_dead_strip	_ipw_up
.subsections_via_symbols
