	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qmi_wwan_register_subdriver
_qmi_wwan_register_subdriver:           ## @qmi_wwan_register_subdriver
	.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	%rdi, %rbx
	movq	32(%rdi), %rsi
	callq	_usbnet_get_endpoints
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	leaq	8(%rbx), %r12
	movq	8(%r12), %rax
	cmpq	24(%r12), %rax
	je	LBB0_2
## %bb.3:
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	leaq	16(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	(%rbx), %rsi
	movq	16(%rbx), %rdi
	movq	_qmi_wwan_cdc_wdm_manage_power@GOTPCREL(%rip), %rcx
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_usb_cdc_wdm_register
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_7:
	movq	$0, (%rbx)
	movq	%r15, 8(%rbx)
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_qmi_wwan_cdc_wdm_manage_power,4,2 ## @qmi_wwan_cdc_wdm_manage_power
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subdriver registration failed\n"

	.no_dead_strip	_qmi_wwan_register_subdriver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qmi_wwan_register_subdriver
_qmi_wwan_register_subdriver:           ; @qmi_wwan_register_subdriver
	.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	x20, x0
	ldr	x1, [x0, #32]
	bl	_usbnet_get_endpoints
	mov	x19, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
	add	x22, x20, #8
	ldr	x8, [x22, #8]
	ldr	x9, [x22, #24]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	str	x8, [x20]
	cbz	x8, LBB0_6
LBB0_3:
	add	x0, x22, #16
	mov	w1, #0
	bl	_atomic_set
	ldr	x0, [x20, #16]
	ldr	x1, [x20]
Lloh0:
	adrp	x3, _qmi_wwan_cdc_wdm_manage_power@GOTPAGE
Lloh1:
	ldr	x3, [x3, _qmi_wwan_cdc_wdm_manage_power@GOTPAGEOFF]
	mov	w2, #4096
	bl	_usb_cdc_wdm_register
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x0, [x22, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x21
	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
	b	_PTR_ERR
LBB0_5:
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_8
LBB0_7:
	stp	xzr, x21, [x20]
LBB0_8:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_qmi_wwan_cdc_wdm_manage_power,4,2 ; @qmi_wwan_cdc_wdm_manage_power
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subdriver registration failed\n"

	.no_dead_strip	_qmi_wwan_register_subdriver
.subsections_via_symbols
