	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function regwrite
_regwrite:                              ## @regwrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rdx, -16(%rbp)
	movq	%rcx, -24(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, 16(%rsi)
	movl	$16, (%rsi)
	movq	_HAL_DIAG_SETREGS@GOTPCREL(%rip), %rax
	movq	_ATH_DIAG_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rsi)
	movq	_SIOCGATHDIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	movl	$1, %edi
	callq	_err
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HAL_DIAG_SETREGS,4,2           ## @HAL_DIAG_SETREGS
	.comm	_ATH_DIAG_IN,4,2                ## @ATH_DIAG_IN
	.comm	_SIOCGATHDIAG,4,2               ## @SIOCGATHDIAG
	.no_dead_strip	_regwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function regwrite
_regwrite:                              ; @regwrite
	.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, x1
	stp	x3, x2, [sp]
	mov	x8, sp
	str	x8, [x1, #16]
	mov	w8, #16
	str	w8, [x1]
Lloh0:
	adrp	x8, _HAL_DIAG_SETREGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HAL_DIAG_SETREGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ATH_DIAG_IN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH_DIAG_IN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x1, #4]
Lloh6:
	adrp	x8, _SIOCGATHDIAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOCGATHDIAG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
	ldr	w1, [x19, #8]
	mov	w0, #1
	bl	_err
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HAL_DIAG_SETREGS,4,2           ; @HAL_DIAG_SETREGS
	.comm	_ATH_DIAG_IN,4,2                ; @ATH_DIAG_IN
	.comm	_SIOCGATHDIAG,4,2               ; @SIOCGATHDIAG
	.no_dead_strip	_regwrite
.subsections_via_symbols
