	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_usb_attach
_brcmf_usb_attach:                      ## @brcmf_usb_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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movl	%r15d, 24(%rbx)
	movl	%r15d, %eax
	shrl	$31, %eax
	addl	%r15d, %eax
	sarl	%eax
	movl	%eax, (%rbx)
	movq	%rbx, 40(%rbx)
	movl	%r14d, 28(%rbx)
	movq	_BRCMFMAC_USB_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	leal	3(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$2, %eax
	movl	%eax, 4(%rbx)
	leal	(%rax,%rax,2), %eax
	movl	%eax, 8(%rbx)
	movq	_BRCMF_USB_MAX_PKT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	108(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	104(%rbx), %rdi
	callq	_spin_lock_init
	leaq	100(%rbx), %rdi
	callq	_spin_lock_init
	leaq	88(%rbx), %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	leaq	96(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	72(%rbx), %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	leaq	92(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movl	$0, 12(%rbx)
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_brcmf_usbdev_qinit
	movq	%rax, 80(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_brcmf_usbdev_qinit
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	%r14d, 16(%rbx)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	addq	$24, %rbx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_brcmf_err
	movq	%rbx, %rdi
	callq	_brcmf_usb_detach
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB,4,2                        ## @USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_BRCMFMAC_USB_STATE_DOWN,4,2    ## @BRCMFMAC_USB_STATE_DOWN
	.comm	_BRCMF_USB_MAX_PKT_SIZE,4,2     ## @BRCMF_USB_MAX_PKT_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"failed!\n"

	.no_dead_strip	_brcmf_usb_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_usb_attach
_brcmf_usb_attach:                      ; @brcmf_usb_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	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _USB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w8, w8, #1
Lloh5:
	adrp	x9, _BRCMFMAC_USB_STATE_DOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BRCMFMAC_USB_STATE_DOWN@GOTPAGEOFF]
	add	w10, w21, #3
	cmp	w21, #0
	csel	w10, w10, w21, lt
	asr	w10, w10, #2
	stp	w8, w10, [x19]
Lloh7:
	ldr	w8, [x9]
	str	w8, [x19, #36]
	mov	x20, x19
	str	w22, [x20, #24]!
	str	x19, [x19, #40]
	add	w8, w10, w10, lsl #1
	str	w8, [x19, #8]
Lloh8:
	adrp	x8, _BRCMF_USB_MAX_PKT_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BRCMF_USB_MAX_PKT_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w21, w8, [x19, #28]
	add	x0, x19, #108
	bl	_init_waitqueue_head
	add	x0, x19, #104
	bl	_spin_lock_init
	add	x0, x19, #100
	bl	_spin_lock_init
	add	x24, x19, #88
	mov	x0, x24
	bl	_INIT_LIST_HEAD
	add	x0, x19, #96
	bl	_INIT_LIST_HEAD
	add	x23, x19, #72
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	add	x0, x19, #92
	bl	_INIT_LIST_HEAD
	str	wzr, [x19, #12]
	mov	x0, x24
	mov	x1, x22
	bl	_brcmf_usbdev_qinit
	str	x0, [x19, #80]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	bl	_brcmf_usbdev_qinit
	str	x0, [x19, #64]
	cbz	x0, LBB0_4
; %bb.2:
	str	w21, [x19, #16]
Lloh11:
	adrp	x21, _GFP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x21, [x21, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #56]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x21]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #48]
	cbnz	x0, LBB0_5
LBB0_4:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_brcmf_err
	mov	x0, x19
	bl	_brcmf_usb_detach
	mov	x20, #0
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_USB,4,2                        ; @USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_BRCMFMAC_USB_STATE_DOWN,4,2    ; @BRCMFMAC_USB_STATE_DOWN
	.comm	_BRCMF_USB_MAX_PKT_SIZE,4,2     ; @BRCMF_USB_MAX_PKT_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"failed!\n"

	.no_dead_strip	_brcmf_usb_attach
.subsections_via_symbols
