	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_own_selfid
_generate_own_selfid:                   ## @generate_own_selfid
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$1, %esi
	callq	_get_phy_reg
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_get_phy_reg
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_get_phy_reg
	movb	%al, -21(%rbp)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_phy_reg
	movb	%al, -20(%rbp)
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_phy_reg
	movb	%al, -19(%rbp)
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_get_phy_reg
                                        ## kill: def $al killed $al def $eax
	movb	%al, -18(%rbp)
	shrb	$3, %al
	andb	$2, %al
	andb	$15, %bl
	je	LBB0_7
## %bb.1:
	movzbl	%bl, %r8d
	cmpb	$1, %r8b
	jne	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	movl	%r8d, %edi
	andl	$-2, %edi
	movl	$4, %edx
	xorl	%esi, %esi
	movl	$1, %r9d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-21(%rbp,%rsi), %ecx
	movl	%ecx, %ebx
	shrl	$3, %ebx
	andl	$1, %ebx
	orl	$2, %ebx
	testb	$4, %cl
	cmovel	%r9d, %ebx
	leal	2(%rdx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orb	%al, %bl
	movzbl	-20(%rbp,%rsi), %ecx
	movl	%ecx, %eax
	shrl	$3, %eax
	andl	$1, %eax
	orl	$2, %eax
	testb	$4, %cl
	cmovel	%r9d, %eax
	movl	%edx, %ecx
	shll	%cl, %eax
	orb	%bl, %al
	addq	$2, %rsi
	addl	$-4, %edx
	cmpq	%rsi, %rdi
	jne	LBB0_4
LBB0_5:
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:
	leaq	-24(%rbp), %rcx
	movzbl	3(%rsi,%rcx), %ecx
	movl	%ecx, %edx
	shrl	$3, %edx
	andl	$1, %edx
	orl	$2, %edx
	testb	$4, %cl
	movl	$1, %edi
	cmovnel	%edx, %edi
	addl	%esi, %esi
	movb	$6, %cl
	subb	%sil, %cl
	shll	%cl, %edi
	orb	%dil, %al
LBB0_7:
	movb	%al, -17(%rbp)
	leaq	-17(%rbp), %rdi
	callq	_cpu_to_be32s
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	movsbl	-17(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_PRINT
	movsbl	-17(%rbp), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hpsb_disable_irm,4,2           ## @hpsb_disable_irm
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"generated own selfid 0x%x"

	.no_dead_strip	_generate_own_selfid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_own_selfid
_generate_own_selfid:                   ; @generate_own_selfid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	w1, #1
	bl	_get_phy_reg
	mov	x0, x19
	mov	w1, #2
	bl	_get_phy_reg
	mov	x20, x0
	mov	x0, x19
	mov	w1, #3
	bl	_get_phy_reg
	strb	w0, [sp, #11]
	mov	x0, x19
	mov	w1, #4
	bl	_get_phy_reg
	strb	w0, [sp, #12]
	mov	x0, x19
	mov	w1, #5
	bl	_get_phy_reg
	strb	w0, [sp, #13]
	mov	x0, x19
	mov	w1, #6
	bl	_get_phy_reg
	strb	w0, [sp, #14]
	lsr	w8, w0, #3
	and	w8, w8, #0x2
	ands	w11, w20, #0xf
	b.eq	LBB0_3
; %bb.1:
	mov	x9, #0
	add	x10, sp, #8
	add	x10, x10, #3
	lsl	x11, x11, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x10], #1
	mov	w13, #2
	bfxil	w13, w12, #3, #1
	tst	w12, #0x4
	csinc	w12, w13, wzr, ne
	add	w13, w9, #6
	lsl	w12, w12, w13
	orr	w8, w8, w12
	sub	x9, x9, #2
	cmn	x11, x9
	b.ne	LBB0_2
LBB0_3:
	strb	w8, [sp, #15]
	add	x0, sp, #15
	bl	_cpu_to_be32s
Lloh0:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	ldrsb	w3, [sp, #15]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_PRINT
	ldrsb	w0, [sp, #15]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hpsb_disable_irm,4,2           ; @hpsb_disable_irm
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"generated own selfid 0x%x"

	.no_dead_strip	_generate_own_selfid
.subsections_via_symbols
