	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uld_attach
_uld_attach:                            ## @uld_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r15
	movq	%r15, %rsi
	callq	_uld_init
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_uld_queue_init
	movq	8(%rbx), %rax
	movl	%r14d, %r12d
	shlq	$5, %r12
	movq	%r15, %rdi
	callq	*24(%rax,%r12)
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %r15d
	movq	8(%rbx), %rax
	movl	16(%rax,%r12), %ebx
	movq	%r14, %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_warn
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_4
LBB0_2:
	movq	8(%rbx), %rax
	movq	%r14, 8(%rax,%r12)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_t4_register_netevent_notifier
	movq	_CXGB4_FULL_INIT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movq	_CXGB4_STATE_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*(%rax,%r12)
LBB0_4:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not attach to the %s driver, error %ld\n"

	.comm	_CXGB4_FULL_INIT_DONE,4,2       ## @CXGB4_FULL_INIT_DONE
	.comm	_CXGB4_STATE_UP,4,2             ## @CXGB4_STATE_UP
	.no_dead_strip	_uld_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uld_attach
_uld_attach:                            ; @uld_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #8
	bl	_uld_init
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_uld_queue_init
	ldr	x8, [x20, #8]
	mov	w22, w19
	add	x8, x8, x22, lsl #5
	ldr	x8, [x8, #24]
	add	x0, sp, #8
	blr	x8
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w21, [x20, #16]
	ldr	x8, [x20, #8]
	add	x8, x8, x22, lsl #5
	ldr	w20, [x8, #16]
	mov	x0, x19
	bl	_PTR_ERR
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_warn
	mov	x0, x19
	bl	_PTR_ERR
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20, #8]
	add	x8, x8, x22, lsl #5
	str	x19, [x8, #8]
	bl	_t4_register_netevent_notifier
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _CXGB4_FULL_INIT_DONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CXGB4_FULL_INIT_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	lsl	x9, x22, #5
	ldr	x8, [x8, x9]
Lloh5:
	adrp	x9, _CXGB4_STATE_UP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CXGB4_STATE_UP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not attach to the %s driver, error %ld\n"

	.comm	_CXGB4_FULL_INIT_DONE,4,2       ; @CXGB4_FULL_INIT_DONE
	.comm	_CXGB4_STATE_UP,4,2             ; @CXGB4_STATE_UP
	.no_dead_strip	_uld_attach
.subsections_via_symbols
