	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function regread
_regread:                               ## @regread
	.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	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	%edx, -40(%rbp)
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, 24(%rsi)
	movabsq	$51539607568, %rax              ## imm = 0xC00000010
	movq	%rax, (%rsi)
	leaq	-28(%rbp), %rax
	movq	%rax, 16(%rsi)
	movq	_HAL_DIAG_REGS@GOTPCREL(%rip), %rax
	movq	_ATH_DIAG_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ATH_DIAG_DYN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rsi)
	movq	_SIOCGATHDIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movl	12(%rbx), %esi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movl	-20(%rbp), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HAL_DIAG_REGS,4,2              ## @HAL_DIAG_REGS
	.comm	_ATH_DIAG_IN,4,2                ## @ATH_DIAG_IN
	.comm	_ATH_DIAG_DYN,4,2               ## @ATH_DIAG_DYN
	.comm	_SIOCGATHDIAG,4,2               ## @SIOCGATHDIAG
	.no_dead_strip	_regread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function regread
lCPI0_0:
	.long	16                              ; 0x10
	.long	12                              ; 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_regread:                               ; @regread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	str	w2, [sp, #16]
	str	xzr, [sp, #8]
	add	x8, sp, #8
	add	x9, sp, #28
	stp	x9, x8, [x1, #16]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x1]
Lloh5:
	adrp	x8, _HAL_DIAG_REGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HAL_DIAG_REGS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _ATH_DIAG_IN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATH_DIAG_IN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _ATH_DIAG_DYN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ATH_DIAG_DYN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x1, #8]
Lloh14:
	adrp	x8, _SIOCGATHDIAG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIOCGATHDIAG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
	ldr	w1, [x19, #12]
	mov	w0, #1
	bl	_err
LBB0_2:
	ldr	w0, [sp, #36]
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HAL_DIAG_REGS,4,2              ; @HAL_DIAG_REGS
	.comm	_ATH_DIAG_IN,4,2                ; @ATH_DIAG_IN
	.comm	_ATH_DIAG_DYN,4,2               ; @ATH_DIAG_DYN
	.comm	_SIOCGATHDIAG,4,2               ; @SIOCGATHDIAG
	.no_dead_strip	_regread
.subsections_via_symbols
