	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_sfp_comm_setup
_xgbe_phy_sfp_comm_setup:               ## @xgbe_phy_sfp_comm_setup
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	4(%rdi), %edi
	movq	_XP_PROP_4@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MUX_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XP_GET_BITS
	movq	%rax, %r14
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	movq	_MUX_ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XP_GET_BITS
	movq	_XGBE_SFP_DIRECT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_XGBE_SFP_COMM_PCA9545@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r15)
	leal	(%rax,%r14,4), %eax
	movl	%eax, (%r15)
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	movq	_MUX_CHAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XP_GET_BITS
	movl	%eax, 4(%r15)
	movq	%rbx, %rdi
	callq	_netif_msg_probe
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	(%rbx), %edi
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XP_PROP_4,4,2                  ## @XP_PROP_4
	.comm	_MUX_ADDR_HI,4,2                ## @MUX_ADDR_HI
	.comm	_MUX_ADDR_LO,4,2                ## @MUX_ADDR_LO
	.comm	_XGBE_SFP_DIRECT,4,2            ## @XGBE_SFP_DIRECT
	.comm	_XGBE_SFP_COMM_PCA9545,4,2      ## @XGBE_SFP_COMM_PCA9545
	.comm	_MUX_CHAN,4,2                   ## @MUX_CHAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SFP: mux_address=%#x\n"

L_.str.1:                               ## @.str.1
	.asciz	"SFP: mux_channel=%u\n"

	.no_dead_strip	_xgbe_phy_sfp_comm_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_sfp_comm_setup
_xgbe_phy_sfp_comm_setup:               ; @xgbe_phy_sfp_comm_setup
	.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	x21, [x0, #8]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x22, _XP_PROP_4@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XP_PROP_4@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _MUX_ADDR_HI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MUX_ADDR_HI@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_XP_GET_BITS
	mov	x20, x0
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _MUX_ADDR_LO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MUX_ADDR_LO@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_XP_GET_BITS
Lloh8:
	adrp	x8, _XGBE_SFP_DIRECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XGBE_SFP_DIRECT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _XGBE_SFP_COMM_PCA9545@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XGBE_SFP_COMM_PCA9545@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	add	w8, w0, w20, lsl #2
	str	w8, [x21]
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
Lloh14:
	adrp	x8, _MUX_CHAN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MUX_CHAN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_XP_GET_BITS
	str	w0, [x21, #4]
	mov	x0, x19
	bl	_netif_msg_probe
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	ldr	w2, [x21]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19]
	ldr	w2, [x21, #4]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	b	_dev_dbg
LBB0_3:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_XP_PROP_4,4,2                  ; @XP_PROP_4
	.comm	_MUX_ADDR_HI,4,2                ; @MUX_ADDR_HI
	.comm	_MUX_ADDR_LO,4,2                ; @MUX_ADDR_LO
	.comm	_XGBE_SFP_DIRECT,4,2            ; @XGBE_SFP_DIRECT
	.comm	_XGBE_SFP_COMM_PCA9545,4,2      ; @XGBE_SFP_COMM_PCA9545
	.comm	_MUX_CHAN,4,2                   ; @MUX_CHAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SFP: mux_address=%#x\n"

l_.str.1:                               ; @.str.1
	.asciz	"SFP: mux_channel=%u\n"

	.no_dead_strip	_xgbe_phy_sfp_comm_setup
.subsections_via_symbols
