	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_wdev_init
_ipw2100_wdev_init:                     ## @ipw2100_wdev_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	%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
	callq	_libipw_priv
	movq	%rax, %r14
	movq	8(%rax), %rdi
	callq	_libipw_get_geo
	movq	%rax, %r13
	movq	8(%r14), %rbx
	movq	32(%rbx), %rax
	movl	16(%rax), %edi
	movl	16(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	(%r13), %edi
	testl	%edi, %edi
	je	LBB0_12
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r12
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, (%r12)
	movl	%edi, 8(%r12)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.3:
	movq	8(%r13), %rdx
	addq	$20, %rax
	shlq	$4, %rcx
	xorl	%esi, %esi
	movq	_LIBIPW_CH_PASSIVE_ONLY@GOTPCREL(%rip), %r8
	movq	_LIBIPW_CH_NO_IBSS@GOTPCREL(%rip), %r10
	movq	_LIBIPW_CH_RADAR_DETECT@GOTPCREL(%rip), %r11
	movq	_IEEE80211_CHAN_RADAR@GOTPCREL(%rip), %r9
	movq	_IEEE80211_CHAN_NO_IR@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$24, %rax
	addq	$16, %rsi
	cmpq	%rsi, %rcx
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	%rdi, -20(%rax)
	movl	12(%rdx,%rsi), %edi
	movl	%edi, (%rax)
	movl	8(%rdx,%rsi), %edi
	movl	%edi, -4(%rax)
	movl	4(%rdx,%rsi), %edi
	movl	%edi, -8(%rax)
	movl	(%rdx,%rsi), %edi
	testl	%edi, (%r8)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %ebx
	orl	%ebx, -12(%rax)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%edi, (%r10)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %ebx
	orl	%ebx, -12(%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%edi, (%r11)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r9), %edi
	orl	%edi, -12(%rax)
	jmp	LBB0_10
LBB0_11:
	movq	_ipw2100_bg_rates@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_RATE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	32(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%r15), %rcx
	movq	%r12, (%rax,%rcx,8)
LBB0_12:
	movq	_ipw_cipher_suites@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%rbx), %rax
	movl	%edi, 4(%rax)
	callq	_ARRAY_SIZE
	movq	32(%rbx), %rdi
	movl	%eax, (%rdi)
	movq	(%r14), %rsi
	callq	_set_wiphy_dev
	movq	32(%rbx), %rdi
	callq	_wiphy_register
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_17:
	movq	%r14, %rdi
	callq	_ipw2100_down
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_15:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LIBIPW_CH_PASSIVE_ONLY,4,2     ## @LIBIPW_CH_PASSIVE_ONLY
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ## @IEEE80211_CHAN_NO_IR
	.comm	_LIBIPW_CH_NO_IBSS,4,2          ## @LIBIPW_CH_NO_IBSS
	.comm	_LIBIPW_CH_RADAR_DETECT,4,2     ## @LIBIPW_CH_RADAR_DETECT
	.comm	_IEEE80211_CHAN_RADAR,4,2       ## @IEEE80211_CHAN_RADAR
	.comm	_ipw2100_bg_rates,4,2           ## @ipw2100_bg_rates
	.comm	_RATE_COUNT,4,2                 ## @RATE_COUNT
	.comm	_ipw_cipher_suites,4,2          ## @ipw_cipher_suites
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ipw2100_wdev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw2100_wdev_init
_ipw2100_wdev_init:                     ; @ipw2100_wdev_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_libipw_priv
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_libipw_get_geo
	mov	x20, x0
	ldr	x21, [x19, #8]
	ldr	x8, [x21, #32]
	ldr	w0, [x8, #16]
	ldr	w1, [x19, #16]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w0, [x20]
	cbz	w0, LBB0_12
; %bb.1:
	ldr	x22, [x19, #8]
Lloh3:
	adrp	x23, _NL80211_BAND_2GHZ@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x22]
	str	w0, [x22, #8]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x22, #24]
	cbz	x0, LBB0_14
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	ldr	x9, [x20, #8]
	add	x10, x0, #12
Lloh8:
	adrp	x11, _LIBIPW_CH_PASSIVE_ONLY@GOTPAGE
Lloh9:
	ldr	x11, [x11, _LIBIPW_CH_PASSIVE_ONLY@GOTPAGEOFF]
Lloh10:
	adrp	x12, _LIBIPW_CH_NO_IBSS@GOTPAGE
Lloh11:
	ldr	x12, [x12, _LIBIPW_CH_NO_IBSS@GOTPAGEOFF]
Lloh12:
	adrp	x13, _LIBIPW_CH_RADAR_DETECT@GOTPAGE
Lloh13:
	ldr	x13, [x13, _LIBIPW_CH_RADAR_DETECT@GOTPAGEOFF]
Lloh14:
	adrp	x14, _IEEE80211_CHAN_RADAR@GOTPAGE
Lloh15:
	ldr	x14, [x14, _IEEE80211_CHAN_RADAR@GOTPAGEOFF]
Lloh16:
	adrp	x15, _IEEE80211_CHAN_NO_IR@GOTPAGE
Lloh17:
	ldr	x15, [x15, _IEEE80211_CHAN_NO_IR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #24
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x16, [x23]
	stur	x16, [x10, #-12]
	ldr	w16, [x9, #12]
	str	w16, [x10, #8]
	ldur	d0, [x9, #4]
	str	d0, [x10]
	ldr	w16, [x9]
	ldr	w17, [x11]
	tst	w17, w16
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w17, [x15]
	ldur	w0, [x10, #-4]
	orr	w17, w0, w17
	stur	w17, [x10, #-4]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w17, [x12]
	tst	w17, w16
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w17, [x15]
	ldur	w0, [x10, #-4]
	orr	w17, w0, w17
	stur	w17, [x10, #-4]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w17, [x13]
	tst	w17, w16
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w16, [x14]
	ldur	w17, [x10, #-4]
	orr	w16, w17, w16
	stur	w16, [x10, #-4]
	b	LBB0_4
LBB0_11:
Lloh18:
	adrp	x8, _ipw2100_bg_rates@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ipw2100_bg_rates@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _RATE_COUNT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RATE_COUNT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #12]
	ldr	x8, [x21, #32]
	ldr	x8, [x8, #8]
	ldr	x9, [x23]
	str	x22, [x8, x9, lsl #3]
LBB0_12:
Lloh24:
	adrp	x8, _ipw_cipher_suites@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ipw_cipher_suites@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x8, [x21, #32]
	str	w0, [x8, #4]
	bl	_ARRAY_SIZE
	ldr	x8, [x21, #32]
	str	w0, [x8]
	ldr	x1, [x19]
	mov	x0, x8
	bl	_set_wiphy_dev
	ldr	x0, [x21, #32]
	bl	_wiphy_register
	cbz	x0, LBB0_16
; %bb.13:
Lloh27:
	adrp	x8, _EIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_ipw2100_down
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LIBIPW_CH_PASSIVE_ONLY,4,2     ; @LIBIPW_CH_PASSIVE_ONLY
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ; @IEEE80211_CHAN_NO_IR
	.comm	_LIBIPW_CH_NO_IBSS,4,2          ; @LIBIPW_CH_NO_IBSS
	.comm	_LIBIPW_CH_RADAR_DETECT,4,2     ; @LIBIPW_CH_RADAR_DETECT
	.comm	_IEEE80211_CHAN_RADAR,4,2       ; @IEEE80211_CHAN_RADAR
	.comm	_ipw2100_bg_rates,4,2           ; @ipw2100_bg_rates
	.comm	_RATE_COUNT,4,2                 ; @RATE_COUNT
	.comm	_ipw_cipher_suites,4,2          ; @ipw_cipher_suites
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ipw2100_wdev_init
.subsections_via_symbols
