	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sethdraddr
_sethdraddr:                            ## @sethdraddr
	.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	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_FLG_LAPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_FLG_LAPD_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	sete	%cl
	testq	%rax, %rax
	cmovel	%r12d, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
	movl	(%r15), %ecx
	shll	$2, %ecx
	leal	(%rcx,%rax,2), %eax
	movl	%eax, (%r14)
	movl	4(%r15), %eax
	addl	%eax, %eax
	incl	%eax
	movl	%eax, 4(%r14)
	movl	$2, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_FLG_ORIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	sete	%cl
	testq	%rax, %rax
	cmovel	%r12d, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
	movl	8(%r15,%rax,4), %eax
	movl	%eax, (%r14)
	movl	$1, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLG_LAPD,4,2                   ## @FLG_LAPD
	.comm	_FLG_LAPD_NET,4,2               ## @FLG_LAPD_NET
	.comm	_FLG_ORIG,4,2                   ## @FLG_ORIG
	.no_dead_strip	_sethdraddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sethdraddr
_sethdraddr:                            ; @sethdraddr
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FLG_LAPD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLG_LAPD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x20, #16
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _FLG_LAPD_NET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLG_LAPD_NET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cmp	w21, #0
	cset	w8, eq
	cmp	x0, #0
	csel	w8, w21, w8, eq
	cmp	w8, #0
	cset	w8, ne
	ldr	w9, [x20]
	lsl	w9, w9, #2
	bfi	w9, w8, #1, #1
	str	w9, [x19]
	ldr	w8, [x20, #4]
	mov	w9, #1
	bfi	w9, w8, #1, #31
	str	w9, [x19, #4]
	mov	w0, #2
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _FLG_ORIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLG_ORIG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cmp	w21, #0
	cset	w8, eq
	cmp	x0, #0
	csel	w8, w21, w8, eq
	cmp	w8, #0
	mov	w8, #12
	mov	w9, #8
	csel	x8, x9, x8, eq
	ldr	w8, [x20, x8]
	str	w8, [x19]
	mov	w0, #1
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FLG_LAPD,4,2                   ; @FLG_LAPD
	.comm	_FLG_LAPD_NET,4,2               ; @FLG_LAPD_NET
	.comm	_FLG_ORIG,4,2                   ; @FLG_ORIG
	.no_dead_strip	_sethdraddr
.subsections_via_symbols
