	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_send_phy_config           ## -- Begin function hpsb_send_phy_config
	.p2align	4, 0x90
_hpsb_send_phy_config:                  ## @hpsb_send_phy_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	movl	%edx, %eax
	andl	%esi, %eax
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	leal	-64(%rdx), %eax
	cmpl	$-65, %eax
	jb	LBB0_4
## %bb.2:
	cmpl	$-1, %esi
	jl	LBB0_4
## %bb.3:
	movq	_ALL_NODES@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_4
## %bb.5:
	movq	%rdi, %r14
	movq	_PHYPACKET_PORT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%esi, %edi
	shll	%cl, %edi
	movq	_PHYPACKET_PHYCONFIG_R@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	xorl	%eax, %eax
	cmpl	$-1, %esi
	cmovnel	%edi, %eax
	cmpl	$-1, %edx
	je	LBB0_7
## %bb.6:
	movq	_PHYPACKET_GAPCOUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_PHYPACKET_PHYCONFIG_T@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%edx, %eax
LBB0_7:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_hpsb_make_phypacket
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_get_hpsb_generation
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_hpsb_send_packet_and_wait
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_hpsb_free_packet
	movl	%r14d, %eax
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_HPSB_DEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALL_NODES,4,2                  ## @ALL_NODES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Parameter: rootid = %d   gapcnt = %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PHYPACKET_PHYCONFIG_R,4,2      ## @PHYPACKET_PHYCONFIG_R
	.comm	_PHYPACKET_PORT_SHIFT,4,2       ## @PHYPACKET_PORT_SHIFT
	.comm	_PHYPACKET_PHYCONFIG_T,4,2      ## @PHYPACKET_PHYCONFIG_T
	.comm	_PHYPACKET_GAPCOUNT_SHIFT,4,2   ## @PHYPACKET_GAPCOUNT_SHIFT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_send_phy_config           ; -- Begin function hpsb_send_phy_config
	.p2align	2
_hpsb_send_phy_config:                  ; @hpsb_send_phy_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	and	w8, w2, w1
	cmn	w8, #1
	b.eq	LBB0_8
; %bb.1:
	sub	w8, w2, #64
	cmn	w8, #65
	b.lo	LBB0_8
; %bb.2:
	cmn	w1, #1
	b.lt	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _ALL_NODES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALL_NODES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_8
; %bb.4:
	mov	x19, x0
Lloh3:
	adrp	x8, _PHYPACKET_PHYCONFIG_R@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHYPACKET_PHYCONFIG_R@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PHYPACKET_PORT_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHYPACKET_PORT_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w1, w9
	orr	w8, w9, w8
	cmn	w1, #1
	csel	w1, wzr, w8, eq
	cmn	w2, #1
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _PHYPACKET_PHYCONFIG_T@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHYPACKET_PHYCONFIG_T@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PHYPACKET_GAPCOUNT_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PHYPACKET_GAPCOUNT_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w2, w9
	orr	w8, w8, w1
	orr	w1, w8, w9
LBB0_6:
	mov	x0, x19
	bl	_hpsb_make_phypacket
	cbz	x0, LBB0_9
; %bb.7:
	mov	x20, x0
	mov	x0, x19
	bl	_get_hpsb_generation
	str	w0, [x20]
	mov	x0, x20
	bl	_hpsb_send_packet_and_wait
	mov	x19, x0
	mov	x0, x20
	bl	_hpsb_free_packet
	mov	x0, x19
	b	LBB0_11
LBB0_8:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPSB_DEBUG
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ALL_NODES,4,2                  ; @ALL_NODES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Parameter: rootid = %d   gapcnt = %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PHYPACKET_PHYCONFIG_R,4,2      ; @PHYPACKET_PHYCONFIG_R
	.comm	_PHYPACKET_PORT_SHIFT,4,2       ; @PHYPACKET_PORT_SHIFT
	.comm	_PHYPACKET_PHYCONFIG_T,4,2      ; @PHYPACKET_PHYCONFIG_T
	.comm	_PHYPACKET_GAPCOUNT_SHIFT,4,2   ; @PHYPACKET_GAPCOUNT_SHIFT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
