	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function llc_ui_autobind
_llc_ui_autobind:                       ## @llc_ui_autobind
	.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, %r14
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_llc_sk
	movq	%rax, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sock_flag
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	(%r14), %esi
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_dev_getfirstbyhwtype
	movq	%rax, 8(%r15)
	movl	%r13d, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_EUSERS@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_llc_ui_autoport
	movl	%eax, 24(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r13d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_llc_sap_open
	movl	%r13d, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r13
	movq	8(%r15), %rax
	movq	16(%r15), %rdi
	movq	(%rax), %rsi
	movq	_IFHWADDRLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_llc_sap_add_socket
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sock_reset_flag
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_init_net,4,2                   ## @init_net
	.comm	_EUSERS,4,2                     ## @EUSERS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IFHWADDRLEN,4,2                ## @IFHWADDRLEN
	.no_dead_strip	_llc_ui_autobind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function llc_ui_autobind
_llc_ui_autobind:                       ; @llc_ui_autobind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_llc_sk
	mov	x21, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x23, _SOCK_ZAPPED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SOCK_ZAPPED@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_sock_flag
	cbz	w0, LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	ldr	w1, [x20]
Lloh8:
	adrp	x0, _init_net@GOTPAGE
Lloh9:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	_dev_getfirstbyhwtype
	str	x0, [x21, #8]
	cbz	x0, LBB0_5
; %bb.2:
Lloh10:
	adrp	x8, _EUSERS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EUSERS@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	bl	_llc_ui_autoport
	str	w0, [x21, #24]
	cbz	w0, LBB0_5
; %bb.3:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh15:
	ldr	w24, [x8]
	mov	x1, #0
	bl	_llc_sap_open
	cbz	x0, LBB0_7
; %bb.4:
	mov	x22, x0
	ldp	x8, x0, [x21, #8]
	ldr	x1, [x8]
Lloh16:
	adrp	x8, _IFHWADDRLEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IFHWADDRLEN@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_memcpy
	mov	x0, x21
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	mov	x0, x22
	mov	x1, x19
	bl	_llc_sap_add_socket
	ldr	w1, [x23]
	mov	x0, x19
	bl	_sock_reset_flag
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	neg	w0, w22
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	neg	w0, w24
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_init_net,4,2                   ; @init_net
	.comm	_EUSERS,4,2                     ; @EUSERS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IFHWADDRLEN,4,2                ; @IFHWADDRLEN
	.no_dead_strip	_llc_ui_autobind
.subsections_via_symbols
