	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_one_core_attach
_b43legacy_one_core_attach:             ## @b43legacy_one_core_attach
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r13
	movq	%rax, %r12
	movq	%r14, 24(%r13)
	movq	%r15, 16(%r13)
	movq	_B43legacy_STAT_UNINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43legacy_set_status
	movq	_modparam_bad_frames_preempt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	leaq	8(%r13), %rdi
	movq	_b43legacy_interrupt_tasklet@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdx
	callq	_tasklet_init
	movq	_modparam_pio@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	$1, (%r12)
LBB0_3:
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	callq	_b43legacy_wireless_core_attach
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_4:
	leaq	4(%r15), %rsi
	movq	%r13, %rdi
	callq	_list_add
	incl	(%r15)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ssb_set_drvdata
	movq	%r12, %rdi
	callq	_b43legacy_debugfs_add_device
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_B43legacy_STAT_UNINIT,4,2      ## @B43legacy_STAT_UNINIT
	.comm	_modparam_bad_frames_preempt,4,2 ## @modparam_bad_frames_preempt
	.comm	_b43legacy_interrupt_tasklet,8,3 ## @b43legacy_interrupt_tasklet
	.comm	_modparam_pio,8,3               ## @modparam_pio
	.no_dead_strip	_b43legacy_one_core_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_one_core_attach
_b43legacy_one_core_attach:             ; @b43legacy_one_core_attach
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	stp	x20, x19, [x0, #16]
Lloh6:
	adrp	x8, _B43legacy_STAT_UNINIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43legacy_STAT_UNINIT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_b43legacy_set_status
Lloh9:
	adrp	x8, _modparam_bad_frames_preempt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _modparam_bad_frames_preempt@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	add	x0, x21, #8
Lloh12:
	adrp	x8, _b43legacy_interrupt_tasklet@GOTPAGE
Lloh13:
	ldr	x8, [x8, _b43legacy_interrupt_tasklet@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x2, x21
	bl	_tasklet_init
Lloh15:
	adrp	x8, _modparam_pio@GOTPAGE
Lloh16:
	ldr	x8, [x8, _modparam_pio@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x21]
LBB0_3:
	add	x23, x21, #4
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	mov	x0, x21
	bl	_b43legacy_wireless_core_attach
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_kfree
	b	LBB0_7
LBB0_5:
	neg	w22, w22
	b	LBB0_7
LBB0_6:
	add	x1, x20, #4
	mov	x0, x23
	bl	_list_add
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_ssb_set_drvdata
	mov	x0, x21
	bl	_b43legacy_debugfs_add_device
LBB0_7:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_B43legacy_STAT_UNINIT,4,2      ; @B43legacy_STAT_UNINIT
	.comm	_modparam_bad_frames_preempt,4,2 ; @modparam_bad_frames_preempt
	.comm	_b43legacy_interrupt_tasklet,8,3 ; @b43legacy_interrupt_tasklet
	.comm	_modparam_pio,8,3               ; @modparam_pio
	.no_dead_strip	_b43legacy_one_core_attach
.subsections_via_symbols
