	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apb_adjust_resource
_apb_adjust_resource:                   ## @apb_adjust_resource
	.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	%r9d, %r14d
	movl	%r8d, %r12d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r13d
	movl	%edi, %r15d
	callq	_device_get_softc
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_6
## %bb.2:
	movl	4(%rax), %edi
	movq	_APB_IO_SCALE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movl	(%rax), %edi
	movq	_APB_MEM_SCALE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_apb_checkrange
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bus_generic_adjust_resource    ## TAILCALL
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APB_IO_SCALE,4,2               ## @APB_IO_SCALE
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_APB_MEM_SCALE,4,2              ## @APB_MEM_SCALE
	.no_dead_strip	_apb_adjust_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apb_adjust_resource
_apb_adjust_resource:                   ; @apb_adjust_resource
	.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	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_device_get_softc
	cmp	w22, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w22, #129
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _APB_IO_SCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APB_IO_SCALE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x0]
Lloh2:
	adrp	x8, _APB_MEM_SCALE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APB_MEM_SCALE@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x19
	bl	_apb_checkrange
	cbz	w0, LBB0_6
LBB0_5:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	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
	b	_bus_generic_adjust_resource
LBB0_6:
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_APB_IO_SCALE,4,2               ; @APB_IO_SCALE
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_APB_MEM_SCALE,4,2              ; @APB_MEM_SCALE
	.no_dead_strip	_apb_adjust_resource
.subsections_via_symbols
