	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b44_set_settings
_b44_set_settings:                      ## @b44_set_settings
	.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, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.1:
	movq	_ADVERTISED_1000baseT_Half@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 8(%rbx)
	jne	LBB0_2
	jmp	LBB0_7
LBB0_3:
	movq	16(%rbx), %rax
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_5:
	movq	24(%rbx), %rax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_25
LBB0_7:
	movq	%r12, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	(%rbx), %rcx
	movq	_B44_FLAG_FORCE_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	(%r13), %rcx
	jne	LBB0_18
## %bb.8:
	movq	_B44_FLAG_100_BASE_T@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_B44_FLAG_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_B44_FLAG_ADV_10HALF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_B44_FLAG_ADV_10FULL@GOTPCREL(%rip), %rdi
	orl	(%rdi), %eax
	movq	_B44_FLAG_ADV_100HALF@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_B44_FLAG_ADV_100FULL@GOTPCREL(%rip), %r8
	orl	(%r8), %eax
	notl	%eax
	andl	(%r12), %eax
	movl	%eax, (%r12)
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.10:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rbx
	testl	%esi, (%rbx)
	je	LBB0_12
## %bb.11:
	orl	(%rcx), %eax
	movl	%eax, (%r12)
LBB0_12:
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_14
## %bb.13:
	orl	(%rdi), %eax
	movl	%eax, (%r12)
LBB0_14:
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_16
## %bb.15:
	orl	(%rdx), %eax
	movl	%eax, (%r12)
LBB0_16:
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	jne	LBB0_17
	jmp	LBB0_22
LBB0_18:
	orl	(%r12), %eax
	movl	%eax, (%r12)
	movq	_B44_FLAG_100_BASE_T@GOTPCREL(%rip), %rsi
	movq	_B44_FLAG_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rsi), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, (%r12)
	movq	16(%rbx), %rax
	movq	_SPEED_100@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_20
## %bb.19:
	orl	(%rsi), %edx
	movl	%edx, (%r12)
LBB0_20:
	movq	24(%rbx), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_22
## %bb.21:
	orl	(%rcx), %edx
	movl	%edx, (%r12)
	jmp	LBB0_22
LBB0_9:
	orl	(%rcx), %eax
	orl	(%rdi), %eax
	orl	(%rdx), %eax
LBB0_17:
	orl	(%r8), %eax
	movl	%eax, (%r12)
LBB0_22:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r12, %rdi
	callq	_b44_setup_phy
LBB0_24:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_ADVERTISED_1000baseT_Half,4,2  ## @ADVERTISED_1000baseT_Half
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_B44_FLAG_FORCE_LINK,4,2        ## @B44_FLAG_FORCE_LINK
	.comm	_B44_FLAG_100_BASE_T,4,2        ## @B44_FLAG_100_BASE_T
	.comm	_B44_FLAG_FULL_DUPLEX,4,2       ## @B44_FLAG_FULL_DUPLEX
	.comm	_B44_FLAG_ADV_10HALF,4,2        ## @B44_FLAG_ADV_10HALF
	.comm	_B44_FLAG_ADV_10FULL,4,2        ## @B44_FLAG_ADV_10FULL
	.comm	_B44_FLAG_ADV_100HALF,4,2       ## @B44_FLAG_ADV_100HALF
	.comm	_B44_FLAG_ADV_100FULL,4,2       ## @B44_FLAG_ADV_100FULL
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.no_dead_strip	_b44_set_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b44_set_settings
_b44_set_settings:                      ; @b44_set_settings
	.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	x22, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x22]
Lloh0:
	adrp	x23, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AUTONEG_ENABLE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x22, #8]
Lloh2:
	adrp	x9, _ADVERTISED_1000baseT_Half@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADVERTISED_1000baseT_Half@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_13
	b	LBB0_4
LBB0_2:
	ldr	x8, [x22, #16]
Lloh8:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_13
; %bb.3:
	ldr	x8, [x22, #24]
Lloh14:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_13
LBB0_4:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	x9, [x22]
	ldr	x10, [x23]
Lloh20:
	adrp	x8, _B44_FLAG_FORCE_LINK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _B44_FLAG_FORCE_LINK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.5:
Lloh23:
	adrp	x9, _B44_FLAG_100_BASE_T@GOTPAGE
Lloh24:
	ldr	x9, [x9, _B44_FLAG_100_BASE_T@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _B44_FLAG_FULL_DUPLEX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _B44_FLAG_FULL_DUPLEX@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x13, _B44_FLAG_ADV_10HALF@GOTPAGE
Lloh30:
	ldr	x13, [x13, _B44_FLAG_ADV_10HALF@GOTPAGEOFF]
	ldr	w9, [x13]
	orr	w8, w8, w9
Lloh31:
	adrp	x12, _B44_FLAG_ADV_10FULL@GOTPAGE
Lloh32:
	ldr	x12, [x12, _B44_FLAG_ADV_10FULL@GOTPAGEOFF]
	ldr	w9, [x12]
	orr	w8, w8, w9
Lloh33:
	adrp	x10, _B44_FLAG_ADV_100HALF@GOTPAGE
Lloh34:
	ldr	x10, [x10, _B44_FLAG_ADV_100HALF@GOTPAGEOFF]
	ldr	w9, [x10]
	orr	w9, w8, w9
Lloh35:
	adrp	x8, _B44_FLAG_ADV_100FULL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _B44_FLAG_ADV_100FULL@GOTPAGEOFF]
	ldr	w11, [x8]
	orr	w9, w9, w11
	ldr	w11, [x19]
	bic	w9, w11, w9
	str	w9, [x19]
	ldr	w11, [x22, #8]
	cbz	w11, LBB0_18
; %bb.6:
Lloh37:
	adrp	x14, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh38:
	ldr	x14, [x14, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh39:
	ldr	w14, [x14]
	tst	w14, w11
	b.eq	LBB0_8
; %bb.7:
	ldr	w13, [x13]
	orr	w9, w13, w9
	str	w9, [x19]
LBB0_8:
Lloh40:
	adrp	x13, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh41:
	ldr	x13, [x13, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh42:
	ldr	w13, [x13]
	tst	w13, w11
	b.eq	LBB0_10
; %bb.9:
	ldr	w12, [x12]
	orr	w9, w9, w12
	str	w9, [x19]
LBB0_10:
Lloh43:
	adrp	x12, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh44:
	ldr	x12, [x12, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh45:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_12
; %bb.11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x19]
LBB0_12:
Lloh46:
	adrp	x10, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh47:
	ldr	x10, [x10, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	tst	w10, w11
	b.ne	LBB0_17
	b	LBB0_20
LBB0_13:
Lloh49:
	adrp	x8, _EINVAL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_23
LBB0_14:
	ldr	w9, [x19]
	orr	w9, w9, w8
	str	w9, [x19]
Lloh52:
	adrp	x10, _B44_FLAG_100_BASE_T@GOTPAGE
Lloh53:
	ldr	x10, [x10, _B44_FLAG_100_BASE_T@GOTPAGEOFF]
	ldr	w11, [x10]
Lloh54:
	adrp	x8, _B44_FLAG_FULL_DUPLEX@GOTPAGE
Lloh55:
	ldr	x8, [x8, _B44_FLAG_FULL_DUPLEX@GOTPAGEOFF]
	ldr	w12, [x8]
	orr	w11, w12, w11
	bic	w9, w9, w11
	str	w9, [x19]
	ldr	x11, [x22, #16]
Lloh56:
	adrp	x12, _SPEED_100@GOTPAGE
Lloh57:
	ldr	x12, [x12, _SPEED_100@GOTPAGEOFF]
Lloh58:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_16
; %bb.15:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_16:
	ldr	x10, [x22, #24]
Lloh59:
	adrp	x11, _DUPLEX_FULL@GOTPAGE
Lloh60:
	ldr	x11, [x11, _DUPLEX_FULL@GOTPAGEOFF]
Lloh61:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_20
LBB0_17:
	ldr	w8, [x8]
	b	LBB0_19
LBB0_18:
	ldr	w11, [x13]
	ldr	w12, [x12]
	ldr	w10, [x10]
	ldr	w8, [x8]
	orr	w9, w11, w9
	orr	w9, w9, w12
	orr	w9, w9, w10
LBB0_19:
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_20:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_b44_setup_phy
LBB0_22:
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	w0, #0
LBB0_23:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_ADVERTISED_1000baseT_Half,4,2  ; @ADVERTISED_1000baseT_Half
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_B44_FLAG_FORCE_LINK,4,2        ; @B44_FLAG_FORCE_LINK
	.comm	_B44_FLAG_100_BASE_T,4,2        ; @B44_FLAG_100_BASE_T
	.comm	_B44_FLAG_FULL_DUPLEX,4,2       ; @B44_FLAG_FULL_DUPLEX
	.comm	_B44_FLAG_ADV_10HALF,4,2        ; @B44_FLAG_ADV_10HALF
	.comm	_B44_FLAG_ADV_10FULL,4,2        ; @B44_FLAG_ADV_10FULL
	.comm	_B44_FLAG_ADV_100HALF,4,2       ; @B44_FLAG_ADV_100HALF
	.comm	_B44_FLAG_ADV_100FULL,4,2       ; @B44_FLAG_ADV_100FULL
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.no_dead_strip	_b44_set_settings
.subsections_via_symbols
