	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_net_read_mac
_xen_net_read_mac:                      ## @xen_net_read_mac
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_XBT_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_xenbus_read
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.2:
	xorl	%r15d, %r15d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	movl	$16, %edx
	callq	_simple_strtoul
	movl	%eax, (%r12,%r15,4)
	movq	-48(%rbp), %rax
	cmpq	%rax, %rbx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13), %rcx
	leal	-1(%rcx), %esi
	xorl	%edx, %edx
	cmpq	%rsi, %r15
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$58, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movsbl	(%rax), %esi
	cmpl	%esi, %edx
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	incq	%r15
	movq	%rax, %rbx
	cmpq	%rcx, %r15
	jl	LBB0_3
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	callq	_kfree
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XBT_NIL,4,2                    ## @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_xen_net_read_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_net_read_mac
_xen_net_read_mac:                      ; @xen_net_read_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x8, _XBT_NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XBT_NIL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w1, [x0]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	mov	x3, #0
	bl	_xenbus_read
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_2:
Lloh5:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x23, #0
	mov	w24, #58
	mov	x21, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #16
	bl	_simple_strtoul
	str	w0, [x19, x23, lsl #2]
	ldr	x8, [sp, #8]
	cmp	x21, x8
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsb	w10, [x8]
	ldrsw	x9, [x22]
	sub	w11, w9, #1
	cmp	x23, x11
	csel	w11, wzr, w24, eq
	cmp	w11, w10
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x8, #1
	add	x23, x23, #1
	cmp	x23, x9
	b.lt	LBB0_4
LBB0_7:
	mov	x0, x20
	bl	_kfree
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_kfree
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_XBT_NIL,4,2                    ; @XBT_NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_xen_net_read_mac
.subsections_via_symbols
