	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbmac_set_iphdr_offset
_sbmac_set_iphdr_offset:                ## @sbmac_set_iphdr_offset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	___raw_readq
	movl	%eax, %r14d
	movq	_M_MAC_IPHDR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	movl	$15, %edi
	callq	_V_MAC_IPHDR_OFFSET
	orl	%eax, %ebx
	andl	%r14d, %ebx
	movl	4(%r15), %esi
	movl	%ebx, %edi
	callq	___raw_writeq
	movq	_soc_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_K_SYS_SOC_TYPE_BCM1250@GOTPCREL(%rip), %rcx
	movq	_periph_rev@GOTPCREL(%rip), %rdx
	cmpl	$2, (%rdx)
	movq	_ENABLE@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	jge	LBB0_2
## %bb.1:
	movq	_DISABLE@GOTPCREL(%rip), %rsi
LBB0_2:
	cmpq	(%rcx), %rax
	cmoveq	%rsi, %rdx
	movl	(%rdx), %eax
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_MAC_IPHDR_OFFSET,4,2         ## @M_MAC_IPHDR_OFFSET
	.comm	_soc_type,8,3                   ## @soc_type
	.comm	_K_SYS_SOC_TYPE_BCM1250,8,3     ## @K_SYS_SOC_TYPE_BCM1250
	.comm	_periph_rev,4,2                 ## @periph_rev
	.comm	_DISABLE,4,2                    ## @DISABLE
	.comm	_ENABLE,4,2                     ## @ENABLE
	.no_dead_strip	_sbmac_set_iphdr_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbmac_set_iphdr_offset
_sbmac_set_iphdr_offset:                ; @sbmac_set_iphdr_offset
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	___raw_readq
	mov	x20, x0
Lloh0:
	adrp	x8, _M_MAC_IPHDR_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_MAC_IPHDR_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #15
	bl	_V_MAC_IPHDR_OFFSET
	orn	w8, w0, w21
	and	w0, w8, w20
	ldr	w1, [x19, #4]
	bl	___raw_writeq
Lloh3:
	adrp	x8, _soc_type@GOTPAGE
Lloh4:
	ldr	x8, [x8, _soc_type@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _K_SYS_SOC_TYPE_BCM1250@GOTPAGE
Lloh7:
	ldr	x9, [x9, _K_SYS_SOC_TYPE_BCM1250@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _periph_rev@GOTPAGE
Lloh10:
	ldr	x10, [x10, _periph_rev@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w10, #2
Lloh12:
	adrp	x10, _DISABLE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DISABLE@GOTPAGEOFF]
	ccmp	x8, x9, #0, lt
Lloh14:
	adrp	x8, _ENABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENABLE@GOTPAGEOFF]
	csel	x8, x10, x8, eq
	ldr	w8, [x8]
	str	w8, [x19]
	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 AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_MAC_IPHDR_OFFSET,4,2         ; @M_MAC_IPHDR_OFFSET
	.comm	_soc_type,8,3                   ; @soc_type
	.comm	_K_SYS_SOC_TYPE_BCM1250,8,3     ; @K_SYS_SOC_TYPE_BCM1250
	.comm	_periph_rev,4,2                 ; @periph_rev
	.comm	_DISABLE,4,2                    ; @DISABLE
	.comm	_ENABLE,4,2                     ; @ENABLE
	.no_dead_strip	_sbmac_set_iphdr_offset
.subsections_via_symbols
