	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax25_bind
_ax25_bind:                             ## @ax25_bind
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	(%rdi), %r14
	cmpl	$4, %edx
	je	LBB0_4
## %bb.1:
	cmpl	$24, %ebx
	jne	LBB0_2
LBB0_4:
	movq	(%r15), %rax
	movq	_AF_AX25@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	callq	_current_euid
	movl	%eax, %edi
	callq	_ax25_findbyuid
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rax), %r13d
	movq	%rax, %rdi
	callq	_ax25_uid_put
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_7:
	movq	_ax25_uid_policy@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.8:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	movl	12(%r15), %r13d
LBB0_11:
	movq	%r14, %rdi
	callq	_lock_sock
	movq	%r14, %rdi
	callq	_ax25_sk
	movq	%rax, %r12
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sock_flag
	testl	%eax, %eax
	je	LBB0_21
## %bb.12:
	movl	%r13d, 8(%r12)
	cmpq	$0, (%r12)
	jne	LBB0_20
## %bb.13:
	cmpl	$5, %ebx
	jb	LBB0_17
## %bb.14:
	cmpl	$1, 8(%r15)
	jne	LBB0_17
## %bb.15:
	movq	16(%r15), %rdi
	movq	_null_ax25_address@GOTPCREL(%rip), %rsi
	callq	_ax25cmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	16(%r15), %rdi
	jmp	LBB0_18
LBB0_17:
	addq	$12, %r15
	movq	%r15, %rdi
LBB0_18:
	callq	_ax25_addr_ax25dev
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_ax25_fillin_cb
LBB0_20:
	movq	%r12, %rdi
	callq	_ax25_cb_add
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sock_reset_flag
LBB0_21:
	movq	%r14, %rdi
	callq	_release_sock
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_AX25,8,3                    ## @AF_AX25
	.comm	_ax25_uid_policy,8,3            ## @ax25_uid_policy
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_null_ax25_address,4,2          ## @null_ax25_address
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.no_dead_strip	_ax25_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax25_bind
_ax25_bind:                             ; @ax25_bind
	.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	x21, x2
	mov	x20, x1
	ldr	x19, [x0]
	cmp	w2, #4
	b.eq	LBB0_2
; %bb.1:
	cmp	w21, #24
	b.ne	LBB0_5
LBB0_2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AF_AX25@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_AX25@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	bl	_current_euid
	bl	_ax25_findbyuid
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w24, [x0]
	bl	_ax25_uid_put
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_7:
Lloh5:
	adrp	x8, _ax25_uid_policy@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ax25_uid_policy@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_22
LBB0_9:
	ldr	w24, [x20, #12]
LBB0_10:
	mov	x0, x19
	bl	_lock_sock
	mov	x0, x19
	bl	_ax25_sk
	mov	x22, x0
Lloh11:
	adrp	x23, _SOCK_ZAPPED@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SOCK_ZAPPED@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_sock_flag
	cbz	w0, LBB0_20
; %bb.11:
	str	w24, [x22, #8]
	ldr	x8, [x22]
	cbnz	x8, LBB0_19
; %bb.12:
	cmp	w21, #5
	b.lo	LBB0_16
; %bb.13:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.14:
	ldr	x0, [x20, #16]
Lloh13:
	adrp	x1, _null_ax25_address@GOTPAGE
Lloh14:
	ldr	x1, [x1, _null_ax25_address@GOTPAGEOFF]
	bl	_ax25cmp
	cbz	x0, LBB0_19
; %bb.15:
	ldr	x0, [x20, #16]
	b	LBB0_17
LBB0_16:
	add	x0, x20, #12
LBB0_17:
	bl	_ax25_addr_ax25dev
	mov	x1, x0
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x22
	bl	_ax25_fillin_cb
LBB0_19:
	mov	x0, x22
	bl	_ax25_cb_add
	ldr	w1, [x23]
	mov	x0, x19
	bl	_sock_reset_flag
LBB0_20:
	mov	x0, x19
	bl	_release_sock
	mov	w0, #0
LBB0_21:
	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_22:
Lloh15:
	adrp	x8, _EACCES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_AX25,8,3                    ; @AF_AX25
	.comm	_ax25_uid_policy,8,3            ; @ax25_uid_policy
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_null_ax25_address,4,2          ; @null_ax25_address
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.no_dead_strip	_ax25_bind
.subsections_via_symbols
