	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeread
_eeread:                                ## @eeread
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_HAL_DIAG_EEREAD@GOTPCREL(%rip), %rax
	movq	_ATH_DIAG_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%edi, -16(%rbp)
	movq	_ATH_DIAG_DYN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_atd@GOTPCREL(%rip), %rbx
	movl	%ecx, (%rbx)
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, 4(%rbx)
	leaq	-16(%rbp), %rax
	movq	%rax, 24(%rbx)
	leaq	-12(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	_s@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIOCGATHDIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movl	-12(%rbp), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HAL_DIAG_EEREAD,4,2            ## @HAL_DIAG_EEREAD
	.comm	_ATH_DIAG_IN,4,2                ## @ATH_DIAG_IN
	.comm	_ATH_DIAG_DYN,4,2               ## @ATH_DIAG_DYN
	.comm	_atd,32,3                       ## @atd
	.comm	_s,4,2                          ## @s
	.comm	_SIOCGATHDIAG,4,2               ## @SIOCGATHDIAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl: %s"

	.no_dead_strip	_eeread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeread
_eeread:                                ; @eeread
	.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
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _HAL_DIAG_EEREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HAL_DIAG_EEREAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ATH_DIAG_IN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH_DIAG_IN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _ATH_DIAG_DYN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ATH_DIAG_DYN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh9:
	adrp	x19, _atd@GOTPAGE
Lloh10:
	ldr	x19, [x19, _atd@GOTPAGEOFF]
	str	w8, [x19]
	add	x8, sp, #12
	movi.2s	v0, #4
	stur	d0, [x19, #4]
	add	x9, sp, #8
	stp	x9, x8, [x19, #16]
Lloh11:
	adrp	x8, _s@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
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	w2, [x19, #12]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	ldr	w0, [sp, #8]
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_HAL_DIAG_EEREAD,4,2            ; @HAL_DIAG_EEREAD
	.comm	_ATH_DIAG_IN,4,2                ; @ATH_DIAG_IN
	.comm	_ATH_DIAG_DYN,4,2               ; @ATH_DIAG_DYN
	.comm	_atd,32,3                       ; @atd
	.comm	_s,4,2                          ; @s
	.comm	_SIOCGATHDIAG,4,2               ; @SIOCGATHDIAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl: %s"

	.no_dead_strip	_eeread
.subsections_via_symbols
