	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_create_net_device
_hso_create_net_device:                 ## @hso_create_net_device
	.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	%rdi, %r14
	callq	_hso_create_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	_hso_net_init@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$64, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, (%r15)
	movq	%rbx, 56(%rax)
	movq	%r15, 48(%rax)
	movq	_USB_ENDPOINT_XFER_BULK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hso_get_ep
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%r13), %esi
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hso_get_ep
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	_hso_type@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_SET_NETDEV_DEVTYPE
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_hso_free_net_device
LBB0_4:
	xorl	%r15d, %r15d
LBB0_23:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_MUX_BULK_RX_BUF_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_18
## %bb.11:
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	24(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	24(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_MUX_BULK_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_kzalloc
	movq	16(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	16(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movq	_MUX_BULK_RX_BUF_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_18:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	_MUX_BULK_TX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	%r15, %rdi
	callq	_add_net_device
	movq	%r15, %rdi
	callq	_hso_log_port
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_hso_create_rfkill
	jmp	LBB0_23
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_3
LBB0_17:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_3
LBB0_19:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_3
LBB0_21:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hso%d"

	.comm	_hso_net_init,4,2               ## @hso_net_init
L_.str.1:                               ## @.str.1
	.asciz	"Unable to create ethernet device\n"

	.comm	_USB_ENDPOINT_XFER_BULK,4,2     ## @USB_ENDPOINT_XFER_BULK
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
L_.str.2:                               ## @.str.2
	.asciz	"Can't find BULK IN endpoint\n"

	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
L_.str.3:                               ## @.str.3
	.asciz	"Can't find BULK OUT endpoint\n"

	.comm	_hso_type,4,2                   ## @hso_type
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register device\n"

	.comm	_MUX_BULK_RX_BUF_COUNT,4,2      ## @MUX_BULK_RX_BUF_COUNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.5:                               ## @.str.5
	.asciz	"Could not allocate rx urb\n"

	.comm	_MUX_BULK_RX_BUF_SIZE,4,2       ## @MUX_BULK_RX_BUF_SIZE
L_.str.6:                               ## @.str.6
	.asciz	"Could not allocate rx buf\n"

L_.str.7:                               ## @.str.7
	.asciz	"Could not allocate tx urb\n"

	.comm	_MUX_BULK_TX_BUF_SIZE,4,2       ## @MUX_BULK_TX_BUF_SIZE
L_.str.8:                               ## @.str.8
	.asciz	"Could not allocate tx buf\n"

	.no_dead_strip	_hso_create_net_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_create_net_device
_hso_create_net_device:                 ; @hso_create_net_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_hso_create_device
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _hso_net_init@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hso_net_init@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #64
	bl	_alloc_netdev
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	str	x0, [x19]
	stp	x19, x22, [x0, #48]
Lloh5:
	adrp	x23, _USB_ENDPOINT_XFER_BULK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _USB_ENDPOINT_XFER_BULK@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh7:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hso_get_ep
	str	x0, [x21, #40]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w1, [x23]
Lloh10:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hso_get_ep
	str	x0, [x21, #32]
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	bl	_SET_NETDEV_DEV
Lloh13:
	adrp	x1, _hso_type@GOTPAGE
Lloh14:
	ldr	x1, [x1, _hso_type@GOTPAGEOFF]
	mov	x0, x22
	bl	_SET_NETDEV_DEVTYPE
	mov	x0, x22
	bl	_register_netdev
	cbz	w0, LBB0_11
; %bb.5:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	bl	_hso_free_net_device
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh23:
	adrp	x23, _MUX_BULK_RX_BUF_COUNT@GOTPAGE
Lloh24:
	ldr	x23, [x23, _MUX_BULK_RX_BUF_COUNT@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh25:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh26:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.12:
	mov	x24, #0
Lloh27:
	adrp	x25, _MUX_BULK_RX_BUF_SIZE@GOTPAGE
Lloh28:
	ldr	x25, [x25, _MUX_BULK_RX_BUF_SIZE@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	w0, #0
	bl	_usb_alloc_urb
	ldr	x8, [x21, #24]
	lsl	x26, x24, #3
	str	x0, [x8, x26]
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x26]
	cbz	x8, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x25]
	ldr	w1, [x22]
	bl	_kzalloc
	ldr	x8, [x21, #16]
	str	x0, [x8, x26]
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x26]
	cbz	x8, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_13
LBB0_16:
	ldr	w1, [x22]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x21, #8]
	cbz	x0, LBB0_21
; %bb.17:
Lloh29:
	adrp	x8, _MUX_BULK_TX_BUF_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MUX_BULK_TX_BUF_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x21]
	cbz	x0, LBB0_22
; %bb.18:
	mov	x0, x19
	bl	_add_net_device
	mov	x0, x19
	bl	_hso_log_port
	mov	x0, x19
	mov	x1, x20
	bl	_hso_create_rfkill
	b	LBB0_10
LBB0_19:
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_20:
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_9
LBB0_21:
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_9
LBB0_22:
Lloh38:
	adrp	x1, l_.str.8@PAGE
Lloh39:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hso%d"

	.comm	_hso_net_init,4,2               ; @hso_net_init
l_.str.1:                               ; @.str.1
	.asciz	"Unable to create ethernet device\n"

	.comm	_USB_ENDPOINT_XFER_BULK,4,2     ; @USB_ENDPOINT_XFER_BULK
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
l_.str.2:                               ; @.str.2
	.asciz	"Can't find BULK IN endpoint\n"

	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
l_.str.3:                               ; @.str.3
	.asciz	"Can't find BULK OUT endpoint\n"

	.comm	_hso_type,4,2                   ; @hso_type
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register device\n"

	.comm	_MUX_BULK_RX_BUF_COUNT,4,2      ; @MUX_BULK_RX_BUF_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.5:                               ; @.str.5
	.asciz	"Could not allocate rx urb\n"

	.comm	_MUX_BULK_RX_BUF_SIZE,4,2       ; @MUX_BULK_RX_BUF_SIZE
l_.str.6:                               ; @.str.6
	.asciz	"Could not allocate rx buf\n"

l_.str.7:                               ; @.str.7
	.asciz	"Could not allocate tx urb\n"

	.comm	_MUX_BULK_TX_BUF_SIZE,4,2       ; @MUX_BULK_TX_BUF_SIZE
l_.str.8:                               ; @.str.8
	.asciz	"Could not allocate tx buf\n"

	.no_dead_strip	_hso_create_net_device
.subsections_via_symbols
