	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbmac_set_duplex
_sbmac_set_duplex:                      ## @sbmac_set_duplex
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, (%rdi)
	movl	%edx, 4(%rdi)
	movq	8(%rdi), %rax
	movq	_sbmac_state_on@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	16(%rdi), %edi
	callq	___raw_readq
	movq	_M_MAC_FC_SEL@GOTPCREL(%rip), %rdx
	movq	_M_MAC_FC_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_M_MAC_HDX_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	$133, %ebx
	je	LBB0_10
## %bb.2:
	cmpl	$132, %ebx
	jne	LBB0_16
## %bb.3:
	cmpl	$131, %r15d
	je	LBB0_9
## %bb.4:
	cmpl	$130, %r15d
	je	LBB0_8
## %bb.5:
	cmpl	$129, %r15d
	jne	LBB0_16
## %bb.6:
	movq	_V_MAC_FC_CMD_DISABLED@GOTPCREL(%rip), %rsi
	jmp	LBB0_7
LBB0_10:
	cmpl	$128, %r15d
	je	LBB0_13
## %bb.11:
	cmpl	$129, %r15d
	jne	LBB0_16
## %bb.12:
	movq	_V_MAC_FC_CMD_DISABLED@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	movq	_V_MAC_FC_CMD_ENABLED@GOTPCREL(%rip), %rsi
LBB0_14:
	movl	(%rsi), %esi
	jmp	LBB0_15
LBB0_9:
	movq	_V_MAC_FC_CMD_ENAB_FALSECARR@GOTPCREL(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	movq	_V_MAC_FC_CMD_ENABLED@GOTPCREL(%rip), %rsi
LBB0_7:
	movl	(%rsi), %esi
	orl	%edx, %esi
LBB0_15:
	orl	%edx, %ecx
	notl	%ecx
	andl	%ecx, %eax
	orl	%esi, %eax
	movl	16(%r12), %esi
	movl	%eax, %edi
	callq	___raw_writeq
	movl	$1, %r14d
LBB0_16:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sbmac_state_on,8,3             ## @sbmac_state_on
	.comm	_M_MAC_FC_SEL,4,2               ## @M_MAC_FC_SEL
	.comm	_M_MAC_FC_CMD,4,2               ## @M_MAC_FC_CMD
	.comm	_M_MAC_HDX_EN,4,2               ## @M_MAC_HDX_EN
	.comm	_V_MAC_FC_CMD_DISABLED,4,2      ## @V_MAC_FC_CMD_DISABLED
	.comm	_V_MAC_FC_CMD_ENABLED,4,2       ## @V_MAC_FC_CMD_ENABLED
	.comm	_V_MAC_FC_CMD_ENAB_FALSECARR,4,2 ## @V_MAC_FC_CMD_ENAB_FALSECARR
	.no_dead_strip	_sbmac_set_duplex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbmac_set_duplex
_sbmac_set_duplex:                      ; @sbmac_set_duplex
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	stp	w1, w2, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _sbmac_state_on@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sbmac_state_on@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	___raw_readq
Lloh3:
	adrp	x8, _M_MAC_FC_SEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_MAC_FC_SEL@GOTPAGEOFF]
Lloh5:
	adrp	x9, _M_MAC_FC_CMD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_MAC_FC_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _M_MAC_HDX_EN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _M_MAC_HDX_EN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w21, #133
	b.eq	LBB0_7
; %bb.2:
	cmp	w21, #132
	b.ne	LBB0_10
; %bb.3:
	cmp	w20, #131
	b.eq	LBB0_13
; %bb.4:
	cmp	w20, #130
	b.eq	LBB0_14
; %bb.5:
	cmp	w20, #129
	b.ne	LBB0_10
; %bb.6:
Lloh12:
	adrp	x11, _V_MAC_FC_CMD_DISABLED@GOTPAGE
Lloh13:
	ldr	x11, [x11, _V_MAC_FC_CMD_DISABLED@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	cmp	w20, #128
	b.eq	LBB0_11
; %bb.8:
	cmp	w20, #129
	b.ne	LBB0_10
; %bb.9:
Lloh14:
	adrp	x11, _V_MAC_FC_CMD_DISABLED@GOTPAGE
Lloh15:
	ldr	x11, [x11, _V_MAC_FC_CMD_DISABLED@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	b	LBB0_17
LBB0_11:
Lloh16:
	adrp	x11, _V_MAC_FC_CMD_ENABLED@GOTPAGE
Lloh17:
	ldr	x11, [x11, _V_MAC_FC_CMD_ENABLED@GOTPAGEOFF]
LBB0_12:
	ldr	w11, [x11]
	b	LBB0_16
LBB0_13:
Lloh18:
	adrp	x11, _V_MAC_FC_CMD_ENAB_FALSECARR@GOTPAGE
Lloh19:
	ldr	x11, [x11, _V_MAC_FC_CMD_ENAB_FALSECARR@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh20:
	adrp	x11, _V_MAC_FC_CMD_ENABLED@GOTPAGE
Lloh21:
	ldr	x11, [x11, _V_MAC_FC_CMD_ENABLED@GOTPAGEOFF]
LBB0_15:
	ldr	w11, [x11]
	orr	w11, w11, w10
LBB0_16:
	orr	w8, w9, w8
	orr	w8, w8, w10
	bic	w8, w0, w8
	orr	w0, w11, w8
	ldr	w1, [x19, #16]
	bl	___raw_writeq
	mov	w0, #1
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_sbmac_state_on,8,3             ; @sbmac_state_on
	.comm	_M_MAC_FC_SEL,4,2               ; @M_MAC_FC_SEL
	.comm	_M_MAC_FC_CMD,4,2               ; @M_MAC_FC_CMD
	.comm	_M_MAC_HDX_EN,4,2               ; @M_MAC_HDX_EN
	.comm	_V_MAC_FC_CMD_DISABLED,4,2      ; @V_MAC_FC_CMD_DISABLED
	.comm	_V_MAC_FC_CMD_ENABLED,4,2       ; @V_MAC_FC_CMD_ENABLED
	.comm	_V_MAC_FC_CMD_ENAB_FALSECARR,4,2 ; @V_MAC_FC_CMD_ENAB_FALSECARR
	.no_dead_strip	_sbmac_set_duplex
.subsections_via_symbols
