	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_initdevice                     ## -- Begin function initdevice
	.p2align	4, 0x90
_initdevice:                            ## @initdevice
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-28(%rbp), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strncpy
	movq	_AF_INET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	$-1, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_SIOCGIFADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_bzero
	movl	(%r15), %eax
	movl	%eax, -36(%rbp)
	movl	-40(%rbp), %esi
	leaq	-32(%rbp), %rdi
	movl	$4, %edx
	callq	_bcopy
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_bind
	cmpl	$-1, %eax
	je	LBB0_5
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %r14d
LBB0_6:
	callq	_perror
	movl	%r14d, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_IPPROTO_RAW,4,2                ## @IPPROTO_RAW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket(AF_INET, SOCK_RAW, IPPROTO_RAW)"

	.comm	_SIOCGIFADDR,4,2                ## @SIOCGIFADDR
L_.str.1:                               ## @.str.1
	.asciz	"ioctl SIOCGIFADDR"

L_.str.2:                               ## @.str.2
	.asciz	"bind"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_initdevice                     ; -- Begin function initdevice
	.p2align	2
_initdevice:                            ; @initdevice
	.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
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [sp, #4]
	mov	x1, x19
	mov	w2, #4
	bl	_strncpy
Lloh0:
	adrp	x20, _AF_INET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _IPPROTO_RAW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPPROTO_RAW@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_socket
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh8:
	adrp	x8, _SIOCGIFADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIOCGIFADDR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	ldr	w8, [x20]
	str	w8, [sp, #12]
	ldr	w1, [sp, #8]
	mov	x0, sp
	mov	w2, #4
	bl	_bcopy
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #8
	bl	_bind
	cmn	w0, #1
	b.eq	LBB0_6
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	mov	w19, #-1
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	w19, #-1
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_perror
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_IPPROTO_RAW,4,2                ; @IPPROTO_RAW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket(AF_INET, SOCK_RAW, IPPROTO_RAW)"

	.comm	_SIOCGIFADDR,4,2                ; @SIOCGIFADDR
l_.str.1:                               ; @.str.1
	.asciz	"ioctl SIOCGIFADDR"

l_.str.2:                               ; @.str.2
	.asciz	"bind"

.subsections_via_symbols
