	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kalmia_init_and_get_ethernet_addr
_kalmia_init_and_get_ethernet_addr:     ## @kalmia_init_and_get_ethernet_addr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_DMA@GOTPCREL(%rip), %rax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$28, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	_kalmia_init_and_get_ethernet_addr.init_msg_1(%rip), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	$12, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	movl	$24, %r8d
	callq	_kalmia_send_init_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	_kalmia_init_and_get_ethernet_addr.init_msg_2(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$12, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	movl	$28, %r8d
	callq	_kalmia_send_init_packet
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rsi
	addq	$10, %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_memcpy
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_kalmia_init_and_get_ethernet_addr.init_msg_1: ## @kalmia_init_and_get_ethernet_addr.init_msg_1
	.asciz	"WP\004\000\000\000\000 \000\000\000"

_kalmia_init_and_get_ethernet_addr.init_msg_2: ## @kalmia_init_and_get_ethernet_addr.init_msg_2
	.asciz	"WP\004\000\000\000\000\002\000\364\000"

	.comm	_GFP_DMA,4,2                    ## @GFP_DMA
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_kalmia_init_and_get_ethernet_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kalmia_init_and_get_ethernet_addr
_kalmia_init_and_get_ethernet_addr:     ; @kalmia_init_and_get_ethernet_addr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_DMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_DMA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w0, #28
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x22, _kalmia_init_and_get_ethernet_addr.init_msg_1@PAGE
Lloh7:
	add	x22, x22, _kalmia_init_and_get_ethernet_addr.init_msg_1@PAGEOFF
	mov	x1, x22
	mov	w2, #12
	bl	_memcpy
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	mov	x3, x20
	mov	w4, #24
	bl	_kalmia_send_init_packet
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x22, _kalmia_init_and_get_ethernet_addr.init_msg_2@PAGE
Lloh9:
	add	x22, x22, _kalmia_init_and_get_ethernet_addr.init_msg_2@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	w2, #12
	bl	_memcpy
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	mov	x3, x20
	mov	w4, #28
	bl	_kalmia_send_init_packet
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
	add	x1, x20, #10
Lloh10:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_memcpy
LBB0_4:
	mov	x0, x20
	bl	_kfree
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_kalmia_init_and_get_ethernet_addr.init_msg_1: ; @kalmia_init_and_get_ethernet_addr.init_msg_1
	.asciz	"WP\004\000\000\000\000 \000\000\000"

_kalmia_init_and_get_ethernet_addr.init_msg_2: ; @kalmia_init_and_get_ethernet_addr.init_msg_2
	.asciz	"WP\004\000\000\000\000\002\000\364\000"

	.comm	_GFP_DMA,4,2                    ; @GFP_DMA
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_kalmia_init_and_get_ethernet_addr
.subsections_via_symbols
