	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pctv452e_read_mac_address
_pctv452e_read_mac_address:             ## @pctv452e_read_mac_address
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movabsq	$876173328415, %rax             ## imm = 0xCC0000001F
	movq	%rax, -120(%rbp)
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movq	_I2C_ADDR_24C16@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-116(%rbp), %rdx
	leaq	-112(%rbp), %r8
	movq	%r15, %rdi
	movl	$1, %ecx
	movl	$20, %r9d
	callq	_pctv452e_i2c_msg
	movl	%eax, %ebx
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_3
## %bb.2:
	movq	_I2C_ADDR_24C64@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-120(%rbp), %rdx
	leaq	-112(%rbp), %r8
	movq	%r15, %rdi
	movl	$2, %ecx
	movl	$20, %r9d
	callq	_pctv452e_i2c_msg
	movl	%eax, %ebx
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_unlock
	cmpl	$20, %ebx
	jne	LBB0_6
## %bb.4:
	leaq	-112(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ttpci_eeprom_decode_mac
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_eth_zero_addr
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I2C_ADDR_24C16,4,2             ## @I2C_ADDR_24C16
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_I2C_ADDR_24C64,4,2             ## @I2C_ADDR_24C64
	.no_dead_strip	_pctv452e_read_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pctv452e_read_mac_address
_pctv452e_read_mac_address:             ; @pctv452e_read_mac_address
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	x8, #31
	movk	x8, #204, lsl #32
	str	x8, [sp]
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _I2C_ADDR_24C16@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_ADDR_24C16@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x8, sp
	orr	x2, x8, #0x4
	add	x4, sp, #8
	mov	x0, x20
	mov	w3, #1
	mov	w5, #20
	bl	_pctv452e_i2c_msg
	mov	x21, x0
Lloh9:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _I2C_ADDR_24C64@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2C_ADDR_24C64@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, sp
	add	x4, sp, #8
	mov	x0, x20
	mov	w3, #2
	mov	w5, #20
	bl	_pctv452e_i2c_msg
	mov	x21, x0
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	cmp	w21, #20
	b.ne	LBB0_6
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ttpci_eeprom_decode_mac
	mov	x21, x0
	cbnz	w0, LBB0_6
	b	LBB0_7
LBB0_5:
	neg	w21, w21
LBB0_6:
	mov	x0, x19
	bl	_eth_zero_addr
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I2C_ADDR_24C16,4,2             ; @I2C_ADDR_24C16
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_I2C_ADDR_24C64,4,2             ; @I2C_ADDR_24C64
	.no_dead_strip	_pctv452e_read_mac_address
.subsections_via_symbols
